Mesa (9.1): Add missing GL_TEXTURE_CUBE_MAP entry in _mesa_legal_texture_dimensions

Ian Romanick idr at kemper.freedesktop.org
Mon Mar 25 21:23:58 UTC 2013


Module: Mesa
Branch: 9.1
Commit: 7f44f9ddc317402e04f4fe0827649b3e143a5eba
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f44f9ddc317402e04f4fe0827649b3e143a5eba

Author: Alan Hourihane <alanh at vmware.com>
Date:   Tue Mar  5 12:05:26 2013 +0000

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 <alanh at vmware.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
(cherry picked from commit 196443f3f5b43d26895043701ea0cdabfaa78210)

---

 src/mesa/main/teximage.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 1b9525b..138edf6 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:




More information about the mesa-commit mailing list