summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2013-03-05 12:05:26 +0000
committerIan Romanick <[email protected]>2013-03-25 14:15:21 -0700
commit7f44f9ddc317402e04f4fe0827649b3e143a5eba (patch)
tree06d6644b20c28596065b4542ced0128adee55343 /src/mesa
parenta31c9c3fa9e969c52754269240131ea66b7db50e (diff)
Add missing GL_TEXTURE_CUBE_MAP entry in _mesa_legal_texture_dimensions
This was hit on the glTexStorage2D() path. Note: this is a candidate for the stable branches Signed-off-by: Alan Hourihane <[email protected]> Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit 196443f3f5b43d26895043701ea0cdabfaa78210)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/teximage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 1b9525b72df..138edf6efd2 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1362,6 +1362,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: