X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=radiant%2Fmain.cpp;h=0d6d566871da140551184d90f52084f613c87672;hp=f1d3a0a5091801b209d74fa33213e436f782d61e;hb=8d530e8707069a0cb030df07696c223522b1f990;hpb=1f11459c84ce689913dca9358d4cfc326c9ad368 diff --git a/radiant/main.cpp b/radiant/main.cpp index f1d3a0a5..0d6d5668 100644 --- a/radiant/main.cpp +++ b/radiant/main.cpp @@ -429,32 +429,6 @@ int main( int argc, char* argv[] ) { char *libgl, *ptr; int i, j, k; - /* - Rambetter on Fri Jan 21, 2011: - - People with recent NVIDIA cards and Windows 7 (Aero) are complaining about "hall of mirrors" - effect in the OpenGL viewports. The code below is borrowed from NetRadiant to address - this issue. This change turns off desktop compositing (globally) while Radiant is running. - It's a real hack but the "correct" fix is very involving, so until the underlying problem - is addressed we need this code here. I don't know for sure what the underlying problem is, - but I have a hunch it's the version of gtkglext.dll we're using. - */ - -#ifdef _WIN32 - HMODULE lib; - lib = LoadLibrary("dwmapi.dll"); - if (lib != 0) - { - void (WINAPI *qDwmEnableComposition) (bool bEnable) = - (void (WINAPI *) (bool bEnable)) GetProcAddress(lib, "DwmEnableComposition"); - if (qDwmEnableComposition) - { - qDwmEnableComposition(FALSE); - } - FreeLibrary(lib); - } -#endif - /* Rambetter on Sat Nov 13, 2010: @@ -932,7 +906,7 @@ int main( int argc, char* argv[] ) { // spog - creates new filters list for the first time g_qeglobals.d_savedinfo.filters = NULL; - g_qeglobals.d_savedinfo.filters = FilterUpdate(g_qeglobals.d_savedinfo.filters); + g_qeglobals.d_savedinfo.filters = FilterAddBase(g_qeglobals.d_savedinfo.filters); g_pParentWnd = new MainFrame();