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:
Topi Pohjolainen 2016-04-22 11:07:06 +03:00
parent 9e153c0692
commit 19948f1bf6
1 changed files with 1 additions and 0 deletions

View File

@ -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: