mutter/cogl/driver
Neil Roberts 988486ac7d framebuffer: Support the GL_RED texture workaround when querying bits
When a component-alpha texture is made using a GL3 context a GL_RED
texture is actually used and a swizzle is set up to hide it. However
if a framebuffer is then bound to that texture then when the bits are
queried this workaround will leak out of the API. To fix this it now
detects the situation and reports the number of red bits as the number
of alpha bits.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 425cfb2675912a2cbcaaaeed7c2196d563948222)
2013-01-22 17:48:19 +00:00
..
gl framebuffer: Support the GL_RED texture workaround when querying bits 2013-01-22 17:48:19 +00:00
nop framebuffer: Bind the framebuffer before querying the bits 2013-01-22 17:48:18 +00:00