mutter/cogl/driver/gl/gles
Neil Roberts 520ccba49d 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)
2013-01-22 17:48:18 +00:00
..
cogl-driver-gles.c Query the framebuffer stencil bits instead of assuming it's global 2013-01-22 17:48:18 +00:00
cogl-texture-driver-gles.c Move _cogl_texture_get_gl_format to -texture-gl.c 2013-01-22 17:48:17 +00:00