diff options
-rw-r--r-- | src/spice-widget-egl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c index e31e322..b40bebf 100644 --- a/src/spice-widget-egl.c +++ b/src/spice-widget-egl.c @@ -431,7 +431,7 @@ void spice_egl_resize_display(SpiceDisplay *display, int w, int h) SpiceDisplayPrivate *d = display->priv; int prog; - if (!gl_make_current(display, NULL)) + if (!d->egl.context_ready || !gl_make_current(display, NULL)) return; glGetIntegerv(GL_CURRENT_PROGRAM, &prog); |