summaryrefslogtreecommitdiff
path: root/gdk/gdkglcontext.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-10-06 19:55:07 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2015-10-07 16:21:57 +0100
commit24230ca78363d8608e77c639db7662c11257f970 (patch)
treefa0e4b869260667113b089b3ef5aebc3373f50b5 /gdk/gdkglcontext.c
parent2dfca143bb6e09d900fa186ba8ecf9bcea6ac30d (diff)
downloadgtk+-24230ca78363d8608e77c639db7662c11257f970.tar.gz
gl: Store the legacy bit in the GL program data
We need to know if we're using a legacy GL context in various places. https://bugzilla.gnome.org/show_bug.cgi?id=756142
Diffstat (limited to 'gdk/gdkglcontext.c')
-rw-r--r--gdk/gdkglcontext.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index 874f1adf07..d7420e9b3f 100644
--- a/gdk/gdkglcontext.c
+++ b/gdk/gdkglcontext.c
@@ -345,7 +345,10 @@ gdk_gl_context_get_paint_data (GdkGLContext *context)
GdkGLContextPrivate *priv = gdk_gl_context_get_instance_private (context);
if (priv->paint_data == NULL)
- priv->paint_data = g_new0 (GdkGLContextPaintData, 1);
+ {
+ priv->paint_data = g_new0 (GdkGLContextPaintData, 1);
+ priv->paint_data->is_legacy = priv->is_legacy;
+ }
return priv->paint_data;
}