aboutsummaryrefslogtreecommitdiff
path: root/ui/gtk-egl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk-egl.c')
-rw-r--r--ui/gtk-egl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/gtk-egl.c b/ui/gtk-egl.c
index 0b787be..ae92399 100644
--- a/ui/gtk-egl.c
+++ b/ui/gtk-egl.c
@@ -72,7 +72,7 @@ void gd_egl_draw(VirtualConsole *vc)
#endif
int ww, wh, pw, ph, gs;
- if (!vc->gfx.gls) {
+ if (!vc->gfx.gls || !vc->gfx.ds) {
return;
}
@@ -112,9 +112,6 @@ void gd_egl_draw(VirtualConsole *vc)
}
#endif
} else {
- if (!vc->gfx.ds) {
- return;
- }
eglMakeCurrent(qemu_egl_display, vc->gfx.esurface,
vc->gfx.esurface, vc->gfx.ectx);