mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
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
This commit is contained in:
parent
2dfca143bb
commit
24230ca783
@ -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;
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user