summaryrefslogtreecommitdiff
path: root/cogl/cogl-depth-state.h
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2012-12-13 15:49:38 +0000
committerRobert Bragg <robert@linux.intel.com>2013-01-22 17:48:18 +0000
commit520ccba49d4d5124da0b2264026fe9edb9605e5c (patch)
tree0ddb081574ef5d21b70536c2aa2ab30600204176 /cogl/cogl-depth-state.h
parent109e576b1f2ec0a515e0bda7016f7198a40c22e9 (diff)
downloadcogl-520ccba49d4d5124da0b2264026fe9edb9605e5c.tar.gz
Query the framebuffer stencil bits instead of assuming it's global
Previously when the context was initialised Cogl would query the number of stencil bits and set a private feature flag to mark that it can use the buffer for clipping if there was at least 3. The problem with this is that the number of stencil bits returned by GL_STENCIL_BITS depends on the currently bound framebuffer. This patch adds an internal function to query the number of stencil bits in a framebuffer and makes it use that instead when determining whether it can push the clip using the stencil buffer. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit e928d21516a6c07798655341f4f0f8e3c1d1686c)
Diffstat (limited to 'cogl/cogl-depth-state.h')
0 files changed, 0 insertions, 0 deletions