From: Brian Paul Date: Fri, 30 Jan 2009 22:50:43 +0000 (-0700) Subject: mesa: fix incorrect call to clear_teximage_fields() in _mesa_TexImage2D() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea4b183b8c3730ec2c6b5152cad1a68889634487;p=mesa.git mesa: fix incorrect call to clear_teximage_fields() in _mesa_TexImage2D() Fixes failed assertion / segfault for particular proxy texture tests. --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 7b9efb6e41c..a64e2c111bc 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -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 */