cogl-clip-stack: Always use the scissor when clipping
authorNeil Roberts <neil@linux.intel.com>
Thu, 22 Apr 2010 13:33:47 +0000 (14:33 +0100)
committerNeil Roberts <neil@linux.intel.com>
Thu, 10 Jun 2010 20:52:55 +0000 (21:52 +0100)
commit0f41948c8202215950ed636ac1d9ee663b4254fd
tree2d1a67b7041adc6d60d7c1aead55138540dc868c
parente74387f36ff7a8fa654ac37fa21fbbfbcc01689a
cogl-clip-stack: Always use the scissor when clipping

Whenever a path or a rectangle is added to the clip stack it now also
stores a screen space bounding box in the entry. Then when the clip
stack is flushed the bounding box is first used to set up the
scissor. That way when we eventually come to use the stencil buffer
the clear will be affected by the scissor so we don't have to clear
the entire buffer.
clutter/cogl/cogl/cogl-clip-stack.c
clutter/cogl/cogl/cogl-path.c