From c570014360d9e5725d843e9cebb9dd8f88cec32a Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 18 Jul 2009 16:59:54 +0100 Subject: [PATCH] [cogl/gles] Fix missing symbols in CoglContext Keep the CoglContext in sync between GL and GLES backends. We ought to find a way to have a generic context, though, and have backend specific sections. Fixes bug: http://bugzilla.openedhand.com/show_bug.cgi?id=1698 --- gles/cogl-context.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gles/cogl-context.h b/gles/cogl-context.h index 2e39f2bc0..f2d7b0654 100644 --- a/gles/cogl-context.h +++ b/gles/cogl-context.h @@ -48,15 +48,15 @@ typedef struct { /* Features cache */ CoglFeatureFlags feature_flags; - gboolean features_cached; /* Enable cache */ gulong enable_flags; guint8 color_alpha; - gboolean enable_backface_culling; - - gboolean indirect; + guint features_cached : 1; + guint enable_backface_culling : 1; + guint indirect : 1; + guint in_begin_gl_block : 1; /* Client-side matrix stack or NULL if none */ CoglMatrixMode matrix_mode; @@ -109,6 +109,9 @@ typedef struct guint quad_indices_short_len; CoglHandle quad_indices_short; + gfloat viewport_width; + gfloat viewport_height; + #ifdef HAVE_COGL_GLES2 CoglGles2Wrapper gles2;