Force legacy GDK backend for GTK3
authorAntoine Fontaine <antoine.fontaine@epfl.ch>
Sun, 21 Mar 2021 00:58:56 +0000 (01:58 +0100)
committerAntoine Fontaine <antoine.fontaine@epfl.ch>
Sun, 21 Mar 2021 16:43:35 +0000 (17:43 +0100)
radiant/main.cpp

index dad69f5cdc874bf647f8bfc5a020b7080a23f2d6..83dc58f9d0a63616fb2b35c1039576282b2a65fa 100644 (file)
@@ -503,6 +503,10 @@ void user_shortcuts_save(){
 }
 
 int main( int argc, char* argv[] ){
+#if GTK_TARGET == 3
+       // HACK: force legacy GL backend as we don't support GL3 yet
+       setenv("GDK_GL", "LEGACY", 0);
+#endif
        crt_init();
 
        streams_init();