projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc31d67
)
fix error in error checking conditional (bug 476846)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Sat, 3 Nov 2001 04:11:26 +0000
(
04:11
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Sat, 3 Nov 2001 04:11:26 +0000
(
04:11
+0000)
src/mesa/main/teximage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/teximage.c
b/src/mesa/main/teximage.c
index 7838577db3d222f79a52ffc8e925718569f6c45a..3e955c700478871e7b1c13a3f7cbb7ae7a048d3a 100644
(file)
--- a/
src/mesa/main/teximage.c
+++ b/
src/mesa/main/teximage.c
@@
-1,4
+1,4
@@
-/* $Id: teximage.c,v 1.10
4 2001/09/18 23:06:14 kschultz
Exp $ */
+/* $Id: teximage.c,v 1.10
5 2001/11/03 04:11:26 brianp
Exp $ */
/*
* Mesa 3-D graphics library
@@
-665,7
+665,7
@@
texture_error_check( GLcontext *ctx, GLenum target,
_mesa_error( ctx, GL_INVALID_ENUM, "glTexImage2D(target)" );
return GL_TRUE;
}
- if (target == GL_PROXY_TEXTURE_2D
&&
target == GL_TEXTURE_2D)
+ if (target == GL_PROXY_TEXTURE_2D
||
target == GL_TEXTURE_2D)
maxLevels = ctx->Const.MaxTextureLevels;
else
maxLevels = ctx->Const.MaxCubeTextureLevels;