From 19948f1bf621d66a02b0be7c6042416bea923ea7 Mon Sep 17 00:00:00 2001 From: Topi Pohjolainen Date: Fri, 22 Apr 2016 11:07:06 +0300 Subject: mesa/formats: Take luminance into account in component count Signed-off-by: Topi Pohjolainen Reviewed-by: Kenneth Graunke Reviewed-by: Iago Toral Quiroga --- src/mesa/main/glformats.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/main/glformats.c') diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 96ab393c0e1..9274dc01775 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -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: -- cgit v1.2.3