From: Topi Pohjolainen Date: Fri, 22 Apr 2016 08:07:06 +0000 (+0300) Subject: mesa/formats: Take luminance into account in component count X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19948f1bf621d66a02b0be7c6042416bea923ea7;p=mesa.git mesa/formats: Take luminance into account in component count Signed-off-by: Topi Pohjolainen Reviewed-by: Kenneth Graunke Reviewed-by: Iago Toral Quiroga --- 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: