mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
mesa: Also report the number of renderbuffer alpha bits for GL_LUMINANCE_ALPHA.
Noticed by code inspection.
This commit is contained in:
parent
f45aea0ec9
commit
5f13c39484
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue