Fix offscreen
authorMateusz Majewski <m.majewski2@samsung.com>
Wed, 19 Jun 2024 09:34:33 +0000 (11:34 +0200)
committerMateusz Majewski <m.majewski2@samsung.com>
Wed, 19 Jun 2024 09:34:33 +0000 (11:34 +0200)
Change-Id: I4294fc7182808cd3d38d2c21d9f8635528deeca0

tizen/src/ui/qt5.c

index 55c570e731e045c62a30647c3a5d255de34fb4e1..e6d095fd74e45d8d70eebdd796866a97e9ab2d98 100644 (file)
@@ -394,7 +394,7 @@ void maru_qt5_display_init(DisplayState *ds, int full_screen)
         qt5_console[i].gen = 0;
         qt5_console[i].updated = false;
         qt5_console[i].gls = NULL;
-        qt5_console[i].ctx = qt5_gl_create_context_internal(3, 3);
+        qt5_console[i].ctx = display_opengl ? qt5_gl_create_context_internal(3, 3) : NULL;
         qt5_console[i].is_scanout = false;
         qt5_console[i].scanout_fbs[0] = 0;
 #endif