gl: Relay use-es from context to paint data

This way we can select the appropriate API or the appropriate shaders.

https://bugzilla.gnome.org/show_bug.cgi?id=743746
This commit is contained in:
Emmanuele Bassi 2016-04-18 10:21:36 +01:00
parent e1cecd243a
commit d7b5ea89eb

View File

@ -349,6 +349,7 @@ gdk_gl_context_get_paint_data (GdkGLContext *context)
{ {
priv->paint_data = g_new0 (GdkGLContextPaintData, 1); priv->paint_data = g_new0 (GdkGLContextPaintData, 1);
priv->paint_data->is_legacy = priv->is_legacy; priv->paint_data->is_legacy = priv->is_legacy;
priv->paint_data->use_es = priv->use_es;
} }
return priv->paint_data; return priv->paint_data;