projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f0b6a7
)
mesa: fix incorrect call to clear_teximage_fields() in _mesa_TexImage2D()
author
Brian Paul
<brianp@vmware.com>
Fri, 30 Jan 2009 22:50:43 +0000
(15:50 -0700)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/teximage.c
b/src/mesa/main/teximage.c
index 7b9efb6e41ca9e7bc42011328636a5e76d19a260..a64e2c111bc8acc33034f10495307dcf421fd321 100644
(file)
--- 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 */