[Mesa-dev] [PATCH 1/2] mesa/formats: Take luminance into account in component count

Topi Pohjolainen topi.pohjolainen at intel.com
Fri Apr 22 08:49:02 UTC 2016


Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
 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:
-- 
2.5.5



More information about the mesa-dev mailing list