Mesa (master): mesa: Also report the number of renderbuffer alpha bits for GL_LUMINANCE_ALPHA.
Eric Anholt
anholt at kemper.freedesktop.org
Mon Jan 3 21:29:48 UTC 2011
Module: Mesa
Branch: master
Commit: 5f13c39484859393cec11b3aa24e541bea8e220d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5f13c39484859393cec11b3aa24e541bea8e220d
Author: Eric Anholt <eric at anholt.net>
Date: Sun Jan 2 18:12:29 2011 -0800
mesa: Also report the number of renderbuffer alpha bits for GL_LUMINANCE_ALPHA.
Noticed by code inspection.
---
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 f7b7723..f004d7a 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;
More information about the mesa-commit
mailing list