forked from AuroraMiddleware/gtk
glcontext: Avoid gcc warning on non-egl build
This commit is contained in:
parent
63fa5b7f52
commit
bf3cf8bb29
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user