mesa: add missing integer alpha formats to _mesa_base_fbo_format
authorMarek Olšák <maraeo@gmail.com>
Sun, 22 Jan 2012 19:21:36 +0000 (20:21 +0100)
committerMarek Olšák <maraeo@gmail.com>
Wed, 25 Jan 2012 11:35:19 +0000 (12:35 +0100)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/fbobject.c

index 2b3ac2e25bf6726163b13330c6d49925d909e9d1..eaf2c46b8dc3a2fbf2701412bf6e22cca4e80392 100644 (file)
@@ -1280,6 +1280,15 @@ _mesa_base_fbo_format(struct gl_context *ctx, GLenum internalFormat)
       return ctx->Extensions.EXT_texture_integer &&
              ctx->Extensions.ARB_framebuffer_object ? GL_LUMINANCE_ALPHA : 0;
 
+   case GL_ALPHA8I_EXT:
+   case GL_ALPHA8UI_EXT:
+   case GL_ALPHA16I_EXT:
+   case GL_ALPHA16UI_EXT:
+   case GL_ALPHA32I_EXT:
+   case GL_ALPHA32UI_EXT:
+      return ctx->Extensions.EXT_texture_integer &&
+             ctx->Extensions.ARB_framebuffer_object ? GL_ALPHA : 0;
+
    case GL_RGB10_A2UI:
       return ctx->Extensions.ARB_texture_rgb10_a2ui ? GL_RGBA : 0;
    default: