cogl-clip-stack: Fix flushing multiple stencil rectangles
authorNeil Roberts <neil@linux.intel.com>
Mon, 24 Jan 2011 17:32:06 +0000 (17:32 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 24 Jan 2011 17:40:07 +0000 (17:40 +0000)
commit4609770bb9faa4dc74ddd0f25e099ff46b91e258
treedfe366950953bbeb611d1f45445d0d1f4f5cfeb0
parent6102f802449d22d543621532b543d6879fdb1925
cogl-clip-stack: Fix flushing multiple stencil rectangles

When flushing a clip stack that contains more than one rectangle which
needs to use the stencil buffer the code takes a different path so
that it can combine the new rectangle with the existing contents of
the stencil buffer. However it was not correctly flushing the
modelview and projection matrices so that rectangle would be in the
wrong place.
clutter/cogl/cogl/cogl-clip-stack.c