summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.c
diff options
context:
space:
mode:
authorTopi Pohjolainen <topi.pohjolainen@intel.com>2016-04-22 11:07:06 +0300
committerTopi Pohjolainen <topi.pohjolainen@intel.com>2016-04-23 07:29:15 +0300
commit19948f1bf621d66a02b0be7c6042416bea923ea7 (patch)
tree65d552dfcdccf57fb115ec8f7a4aacc7d4beec39 /src/mesa/main/glformats.c
parent9e153c06920eb825198385085f0e7085b1fc5c00 (diff)
downloadexternal_mesa3d-19948f1bf621d66a02b0be7c6042416bea923ea7.zip
external_mesa3d-19948f1bf621d66a02b0be7c6042416bea923ea7.tar.gz
external_mesa3d-19948f1bf621d66a02b0be7c6042416bea923ea7.tar.bz2
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>
Diffstat (limited to 'src/mesa/main/glformats.c')
-rw-r--r--src/mesa/main/glformats.c1
1 files changed, 1 insertions, 0 deletions
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: