mesa: fix incorrect call to clear_teximage_fields() in _mesa_TexImage2D()
authorBrian Paul <brianp@vmware.com>
Fri, 30 Jan 2009 22:50:43 +0000 (15:50 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Jan 2009 23:03:32 +0000 (16:03 -0700)
Fixes failed assertion / segfault for particular proxy texture tests.

src/mesa/main/teximage.c

index 7b9efb6e41ca9e7bc42011328636a5e76d19a260..a64e2c111bc8acc33034f10495307dcf421fd321 100644 (file)
@@ -2636,7 +2636,7 @@ _mesa_TexImage2D( GLenum target, GLint level, GLint internalFormat,
                               1, border)) {
          /* when error, clear all proxy texture image parameters */
          if (texImage)
-            clear_teximage_fields(ctx->Texture.ProxyTex[TEXTURE_2D_INDEX]->Image[0][level]);
+            clear_teximage_fields(texImage);
       }
       else {
          /* no error, set the tex image parameters */