projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
347b3f0
)
querying proxy texture image info was segfaulting because of NULL TexFormat pointer
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 30 Mar 2001 21:14:30 +0000
(21:14 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 30 Mar 2001 21:14:30 +0000
(21:14 +0000)
src/mesa/main/texstate.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstate.c
b/src/mesa/main/texstate.c
index 398e23d0a89eb4d32b17a7788bd0e0c2afd46af9..c5123ef7907d4ecaf548cbaf479cbdcfd4ce782e 100644
(file)
--- a/
src/mesa/main/texstate.c
+++ b/
src/mesa/main/texstate.c
@@
-1,4
+1,4
@@
-/* $Id: texstate.c,v 1.4
1 2001/03/28 21:36:31 gareth
Exp $ */
+/* $Id: texstate.c,v 1.4
2 2001/03/30 21:14:30 brianp
Exp $ */
/*
* Mesa 3-D graphics library
@@
-933,7
+933,8
@@
_mesa_GetTexLevelParameteriv( GLenum target, GLint level,
}
img = _mesa_select_tex_image(ctx, texUnit, target, level);
- if (!img) {
+ if (!img || !img->TexFormat) {
+ /* undefined texture image */
if (pname == GL_TEXTURE_COMPONENTS)
*params = 1;
else