Module: Mesa Branch: master Commit: 19948f1bf621d66a02b0be7c6042416bea923ea7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=19948f1bf621d66a02b0be7c6042416bea923ea7
Author: Topi Pohjolainen <[email protected]> Date: Fri Apr 22 11:07:06 2016 +0300 mesa/formats: Take luminance into account in component count Signed-off-by: Topi Pohjolainen <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]> --- src/mesa/main/glformats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 96ab393..9274dc0 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: _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
