summaryrefslogtreecommitdiff
path: root/cogl/cogl-context-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'cogl/cogl-context-private.h')
-rw-r--r--cogl/cogl-context-private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cogl/cogl-context-private.h b/cogl/cogl-context-private.h
index c5a125de..32f2aa29 100644
--- a/cogl/cogl-context-private.h
+++ b/cogl/cogl-context-private.h
@@ -200,6 +200,11 @@ struct _CoglContext
CoglGLES2Context *current_gles2_context;
GQueue gles2_context_stack;
+ /* This becomes TRUE the first time the context is bound to an
+ * onscreen buffer. This is used by cogl-framebuffer-gl to determine
+ * when to initialise the glDrawBuffer state */
+ CoglBool was_bound_to_onscreen;
+
/* Primitives */
CoglPipeline *stencil_pipeline;