[gtk+] gl: Store the legacy bit in the GL program data
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gl: Store the legacy bit in the GL program data
- Date: Wed, 7 Oct 2015 15:22:38 +0000 (UTC)
commit 24230ca78363d8608e77c639db7662c11257f970
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Oct 6 19:55:07 2015 +0100
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
gdk/gdkglcontext.c | 5 ++++-
gdk/gdkglcontextprivate.h | 2 ++
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index 874f1ad..d7420e9 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 a4f19d6..348c168 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]