Mesa (master): mesa/formats: Take luminance into account in component count

Topi Pohjolainen tpohjola at kemper.freedesktop.org
Sat Apr 23 05:50:28 UTC 2016


Module: Mesa
Branch: master
Commit: 19948f1bf621d66a02b0be7c6042416bea923ea7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=19948f1bf621d66a02b0be7c6042416bea923ea7

Author: Topi Pohjolainen <topi.pohjolainen at intel.com>
Date:   Fri Apr 22 11:07:06 2016 +0300

mesa/formats: Take luminance into account in component count

Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Iago Toral Quiroga <itoral at igalia.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:




More information about the mesa-commit mailing list