diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-10-02 11:44:00 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2013-01-22 17:48:04 +0000 |
commit | 6cfc93f26f64c506922bf119d5079d83de7543d2 (patch) | |
tree | 72e8d3b5be5050c8aee7271bc1765650f723d376 /cogl/cogl-context-private.h | |
parent | 362db1c44538c65ba98d9ae7258c79a1babcbbbd (diff) | |
download | cogl-6cfc93f26f64c506922bf119d5079d83de7543d2.tar.gz |
clip-stack: workaround intel gen6 viewport clip bug
The Intel Mesa gen6 driver doesn't currently handle scissoring offset
viewports correctly, so this implements a workaround to intersect the
current viewport bounds with the scissor rectangle.
(cherry picked from commit afc5daab85e5faca99d6d6866658cb82c3954830)
Diffstat (limited to 'cogl/cogl-context-private.h')
-rw-r--r-- | cogl/cogl-context-private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cogl/cogl-context-private.h b/cogl/cogl-context-private.h index 788cf3d3..06acc3c0 100644 --- a/cogl/cogl-context-private.h +++ b/cogl/cogl-context-private.h @@ -83,6 +83,9 @@ struct _CoglContext CoglFeatureFlags feature_flags; /* legacy/deprecated feature flags */ CoglPrivateFeatureFlags private_feature_flags; + CoglBool needs_viewport_scissor_workaround; + CoglFramebuffer *viewport_scissor_workaround_framebuffer; + CoglPipeline *default_pipeline; CoglPipelineLayer *default_layer_0; CoglPipelineLayer *default_layer_n; |