]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - CMakeLists.txt
workaround the GTK2 GLWidget bug on Windows
[xonotic/netradiant.git] / CMakeLists.txt
index 2811bc3f837a3122b0b68d39b2c6e88f35849af2..4cbf3658077dcdd0dfe5b90ce91306cc31932470 100644 (file)
@@ -138,6 +138,10 @@ endif ()
 if (BUILD_RADIANT)
     set(GTK_TARGET 2 CACHE STRING "GTK target")
     add_definitions(-DGTK_TARGET=${GTK_TARGET})
+
+    if (GTK_TARGET EQUAL 2 AND WIN32)
+        add_definitions(-DWORKAROUND_WINDOWS_GTK2_GLWIDGET=1)
+    endif ()
 endif ()
 
 #-----------------------------------------------------------------------