diff --git a/direct/src/plugin/p3dSplashWindow.cxx b/direct/src/plugin/p3dSplashWindow.cxx index d5c80cd1e6..12846d66ad 100755 --- a/direct/src/plugin/p3dSplashWindow.cxx +++ b/direct/src/plugin/p3dSplashWindow.cxx @@ -88,7 +88,6 @@ set_wparams(const P3DWindowParams &wparams) { _wparams = wparams; _win_width = _wparams.get_win_width(); _win_height = _wparams.get_win_height(); - _visible = true; } //////////////////////////////////////////////////////////////////// diff --git a/direct/src/plugin/p3dX11SplashWindow.cxx b/direct/src/plugin/p3dX11SplashWindow.cxx index 780e85583a..f884d2baf0 100755 --- a/direct/src/plugin/p3dX11SplashWindow.cxx +++ b/direct/src/plugin/p3dX11SplashWindow.cxx @@ -94,7 +94,7 @@ set_visible(bool visible) { TiXmlDocument doc; TiXmlElement *xcommand = new TiXmlElement("command"); xcommand->SetAttribute("cmd", "set_visible"); - xcommand->SetAttribute("visible", (int)visible); + xcommand->SetAttribute("visible", (int)_visible); doc.LinkEndChild(xcommand); write_xml(_pipe_write, &doc, nout); }