From 26825caf3594ffaa7330f642f2d0a5e40a2b9f8f Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 21 Nov 2010 22:15:34 +0100 Subject: [PATCH] Changed: Remove hack for black window bug (related to previous NVidia driver) --- .../src/3d/driver/opengl/driver_opengl_window.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp index 1d4f3b1f7..6c05a14f8 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -1131,10 +1131,6 @@ bool CDriverGL::saveScreenMode() #elif defined(NL_OS_UNIX) - // hide window (hack to avoid black window bug) - if (_win) - XUnmapWindow(_dpy, _win); - int screen = DefaultScreen(_dpy); res = false; @@ -1196,10 +1192,6 @@ bool CDriverGL::restoreScreenMode() #elif defined(NL_OS_UNIX) - // hide window (hack to avoid black window bug) - if (_win) - XUnmapWindow(_dpy, _win); - int screen = DefaultScreen(_dpy); #ifdef HAVE_XRANDR @@ -1775,10 +1767,6 @@ bool CDriverGL::setWindowStyle(EWindowStyle windowStyle) } } - // show window (hack to avoid black window bug) - if (_WindowVisible) - XMapRaised(_dpy, _win); - #endif // NL_OS_WINDOWS _CurrentMode.Windowed = (windowStyle == EWSWindowed); @@ -1794,9 +1782,6 @@ bool CDriverGL::setMode(const GfxMode& mode) if (!setScreenMode(mode)) return false; - // change window size before changing style for some cases - setWindowSize(mode.Width, mode.Height); - // when changing window style, it's possible system change window size too setWindowStyle(mode.Windowed ? EWSWindowed : EWSFullscreen);