ARB_texture_rg: Add GL_COMPRESSED_{RED,RG} cases in _mesa_is_color_format
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 1 Oct 2010 23:21:12 +0000 (16:21 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 1 Oct 2010 23:55:35 +0000 (16:55 -0700)
src/mesa/main/image.c

index 1992c7448b350886958ad72b5b8989698539c24c..3951b6a207f8f294de2b60038b1000a4867432e6 100644 (file)
@@ -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: