Mesa (master): ARB_texture_rg: Add GL_COMPRESSED_{RED, RG} cases in _mesa_is_color_format

Ian Romanick idr at kemper.freedesktop.org
Sat Oct 2 00:01:21 UTC 2010


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

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Fri Oct  1 16:21:12 2010 -0700

ARB_texture_rg: Add GL_COMPRESSED_{RED,RG} cases in _mesa_is_color_format

---

 src/mesa/main/image.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 1992c74..3951b6a 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -663,6 +663,8 @@ _mesa_is_color_format(GLenum format)
       case GL_COMPRESSED_LUMINANCE:
       case GL_COMPRESSED_LUMINANCE_ALPHA:
       case GL_COMPRESSED_INTENSITY:
+      case GL_COMPRESSED_RED:
+      case GL_COMPRESSED_RG:
       case GL_COMPRESSED_RGB:
       case GL_COMPRESSED_RGBA:
       case GL_RGB_S3TC:




More information about the mesa-commit mailing list