mesa/formats: Take luminance into account in component count
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
9e153c0692
commit
19948f1bf6
|
@ -1569,6 +1569,7 @@ GLint
|
|||
_mesa_base_format_component_count(GLenum base_format)
|
||||
{
|
||||
switch (base_format) {
|
||||
case GL_LUMINANCE:
|
||||
case GL_RED:
|
||||
case GL_ALPHA:
|
||||
case GL_INTENSITY:
|
||||
|
|
Loading…
Reference in New Issue