From: Benjamin Otte Date: Wed, 3 Nov 2021 22:40:33 +0000 (+0100) Subject: glcontext: Avoid gcc warning on non-egl build X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~8^2~88^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bf3cf8bb2938988b3805d7eb0933b3f3d9a48a4e;p=gtk4.git glcontext: Avoid gcc warning on non-egl build --- diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c index 040b9cce1a..599b946de9 100644 --- a/gdk/gdkglcontext.c +++ b/gdk/gdkglcontext.c @@ -504,8 +504,8 @@ gdk_gl_context_real_is_shared (GdkGLContext *self, static gboolean gdk_gl_context_real_clear_current (GdkGLContext *context) { - GdkDisplay *display = gdk_gl_context_get_display (context); #ifdef HAVE_EGL + GdkDisplay *display = gdk_gl_context_get_display (context); GdkGLContextPrivate *priv = gdk_gl_context_get_instance_private (context); if (priv->egl_context == NULL)