diff options
author | Topi Pohjolainen <[email protected]> | 2016-04-22 11:07:06 +0300 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2016-04-23 07:29:15 +0300 |
commit | 19948f1bf621d66a02b0be7c6042416bea923ea7 (patch) | |
tree | 65d552dfcdccf57fb115ec8f7a4aacc7d4beec39 /src/mesa/main/glformats.c | |
parent | 9e153c06920eb825198385085f0e7085b1fc5c00 (diff) |
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]>
Diffstat (limited to 'src/mesa/main/glformats.c')
-rw-r--r-- | src/mesa/main/glformats.c | 1 |
1 files changed, 1 insertions, 0 deletions
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: |