OSDN Git Service

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 1992c74..3951b6a 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: