Add missing GL_TEXTURE_CUBE_MAP entry in _mesa_legal_texture_dimensions
authorAlan Hourihane <alanh@vmware.com>
Tue, 5 Mar 2013 12:05:26 +0000 (12:05 +0000)
committerAlan Hourihane <alanh@vmware.com>
Tue, 5 Mar 2013 17:22:44 +0000 (17:22 +0000)
This was hit on the glTexStorage2D() path.

Note: this is a candidate for the stable branches

Signed-off-by: Alan Hourihane <alanh@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/teximage.c

index 0dcf88ae424e3bc07c886ee16142d69d1921ea2d..9d4a17052d593bb90f8d6430e794a7f8e304f162 100644 (file)
@@ -1416,6 +1416,7 @@ _mesa_legal_texture_dimensions(struct gl_context *ctx, GLenum target,
          return GL_FALSE;
       return GL_TRUE;
 
+   case GL_TEXTURE_CUBE_MAP:
    case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
    case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
    case GL_TEXTURE_CUBE_MAP_POSITIVE_Y: