[Mesa-dev] [PATCH] mesa: remove stray GL_TEXTURE_1D_ARRAY code in _mesa_store_teximage3d()

Brian Paul brianp at vmware.com
Mon Dec 19 12:47:42 PST 2011


GL_TEXTURE_1D_ARRAY is never a legal target for glTexImage3D.  This was
probably copy&paste code from the _mesa_store_teximage2d() function above.
---
 src/mesa/main/texstore.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index a57a38e..cfe1c24 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -4775,11 +4775,6 @@ _mesa_store_teximage3d(struct gl_context *ctx, GLenum target, GLint level,
       return;
    }
 
-   if (target == GL_TEXTURE_1D_ARRAY) {
-      depth = height;
-      height = 1;
-   }
-
    sliceMaps = (GLubyte **) calloc(depth, sizeof(GLubyte *));
 
    /* Map dest texture buffer slices */
-- 
1.7.3.4



More information about the mesa-dev mailing list