summaryrefslogtreecommitdiff
path: root/cogl/cogl-clip-stack.c
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2011-12-06 12:37:13 +0000
committerNeil Roberts <neil@linux.intel.com>2011-12-07 18:59:11 +0000
commit0717f0f96c46da03bac9da024e89f2cd1d9237fc (patch)
tree6516b48b253297e8ec08bdfaeffdbc38d0451495 /cogl/cogl-clip-stack.c
parent09520a7d61a86e59aec7ea901724b089d4777ae1 (diff)
downloadcogl-wip/onscreen-flip.tar.gz
Allow the winsys backend to force rendering onscreen buffers flippedwip/onscreen-flip
This adds the option for a winsys to report which kinds of buffers need a flipped rendering. This will be used by the KMS backend because that also needs flipped rendering for onscreen buffers. There is a virtual winsys function to report a bitmask of types of buffers that need to be flipped. The default implementation just reports offscreen buffers. None of the winsyss actually implement it yet. When the backend flips for both types of framebuffer or neither type of framebuffer the vertend now hardcodes the vector for the flip instead of adding the uniform.
Diffstat (limited to 'cogl/cogl-clip-stack.c')
-rw-r--r--cogl/cogl-clip-stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cogl/cogl-clip-stack.c b/cogl/cogl-clip-stack.c
index 5cc49817..0aeb1adf 100644
--- a/cogl/cogl-clip-stack.c
+++ b/cogl/cogl-clip-stack.c
@@ -861,7 +861,7 @@ _cogl_clip_stack_flush (CoglClipStack *stack,
* down so in this case no conversion is needed.
*/
- if (cogl_is_offscreen (framebuffer))
+ if (_cogl_framebuffer_is_flipped (framebuffer))
scissor_y_start = scissor_y0;
else
{