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; } diff --git a/gdk/gdkglcontextprivate.h b/gdk/gdkglcontextprivate.h index a4f19d649e..348c16824d 100644 --- a/gdk/gdkglcontextprivate.h +++ b/gdk/gdkglcontextprivate.h @@ -67,6 +67,8 @@ typedef struct { GdkGLContextProgram texture_rect_quad_program; GdkGLContextProgram *current_program; + + guint is_legacy : 1; } GdkGLContextPaintData; void gdk_gl_context_set_is_legacy (GdkGLContext *context,