projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f45aea0
)
mesa: Also report the number of renderbuffer alpha bits for GL_LUMINANCE_ALPHA.
author
Eric Anholt
<eric@anholt.net>
Mon, 3 Jan 2011 02:12:29 +0000
(18:12 -0800)
committer
Eric Anholt
<eric@anholt.net>
Mon, 3 Jan 2011 21:28:26 +0000
(13:28 -0800)
Noticed by code inspection.
src/mesa/main/fbobject.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index
f7b7723
..
f004d7a
100644
(file)
--- 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;