summaryrefslogtreecommitdiff
path: root/gtk/gtkglarea.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-02-04 15:10:23 +0100
committerTimm Bäder <mail@baedert.org>2018-02-04 15:10:23 +0100
commitd70bfea8e95c1ecc73263c3d75ae2b7d48ea0423 (patch)
tree681160b9010bf496a644c284a7985cfc27b3bae3 /gtk/gtkglarea.c
parent5aaf75201324fb6f7677493930c1dcc126b499c2 (diff)
downloadgtk+-d70bfea8e95c1ecc73263c3d75ae2b7d48ea0423.tar.gz
glarea: Fix precondition check
and the build.
Diffstat (limited to 'gtk/gtkglarea.c')
-rw-r--r--gtk/gtkglarea.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c
index 3a12f84081..1e14e1b07e 100644
--- a/gtk/gtkglarea.c
+++ b/gtk/gtkglarea.c
@@ -1372,7 +1372,7 @@ gtk_gl_area_make_current (GtkGLArea *area)
GtkGLAreaPrivate *priv = gtk_gl_area_get_instance_private (area);
g_return_if_fail (GTK_IS_GL_AREA (area));
- g_return_if_fail (gtk_widget_get_realized (GTK_WIDGET (widget)));
+ g_return_if_fail (gtk_widget_get_realized (GTK_WIDGET (area)));
if (priv->context != NULL)
gdk_gl_context_make_current (priv->context);