diff options
author | Eric Anholt <[email protected]> | 2011-01-02 18:12:29 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-01-03 13:28:26 -0800 |
commit | 5f13c39484859393cec11b3aa24e541bea8e220d (patch) | |
tree | 676299a3a74ae23b6446ac1f39cf827d65cb5147 /src/mesa | |
parent | f45aea0ec912159eb6aa4ef2ba2bdcd022bc8aca (diff) |
mesa: Also report the number of renderbuffer alpha bits for GL_LUMINANCE_ALPHA.
Noticed by code inspection.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/fbobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index f7b77233500..f004d7a8fca 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -1190,7 +1190,8 @@ get_component_bits(GLenum pname, GLenum baseFormat, gl_format format) return 0; case GL_RENDERBUFFER_ALPHA_SIZE_EXT: case GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: - if (baseFormat == GL_RGBA || baseFormat == GL_ALPHA) + if (baseFormat == GL_RGBA || baseFormat == GL_ALPHA || + baseFormat == GL_LUMINANCE_ALPHA) return _mesa_get_format_bits(format, pname); else return 0; |