QemuConsole *con = qemu_console_lookup_by_index(i);
#ifdef CONFIG_OPENGL
qt5_console[i].dcl.ops = display_opengl ? &dcl_gl_ops : &dcl_ops;
-#else
- qt5_console[i].dcl.ops = &dcl_ops;
-#endif
- qt5_console[i].dcl.con = con;
- register_displaychangelistener(&qt5_console[i].dcl);
- qt5_console[i].idx = i;
-
-#ifdef CONFIG_OPENGL
qt5_console[i].gen = 0;
qt5_console[i].updated = false;
qt5_console[i].gls = NULL;
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;
+#else
+ qt5_console[i].dcl.ops = &dcl_ops;
#endif
+ qt5_console[i].dcl.con = con;
+ register_displaychangelistener(&qt5_console[i].dcl);
+ qt5_console[i].idx = i;
}
if (full_screen) {
bool ok = dpy_item_gen[item_id] == 0 || item->available;
if (ok) {
ret = item->tex;
- if (dpy_item_gen[item_id] != gen || /* HACK HACK HACK */ item->tex < 25) {
+ if (dpy_item_gen[item_id] != gen) {
/* This tells the caller that the texture should not be used anymore.
* Preferably we could handle this right here, but the caller can do it
* conveniently and I couldn't get compilation to work. */