summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-03-28 21:31:54 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-03-28 21:31:54 +0000
commit5bfaa2f12e35a9de4a4116968e34ee24007973e7 (patch)
tree21da8a240461a6767224874ddc4fc1895e8cbd97 /src/mesa
parent38e3675d7dc6c373366e576e3ca1a1eb966e4dac (diff)
use Image[i]->TexFormat to check for mipmap consistency
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/texobj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index da4c636056..9ebbb1415b 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -1,4 +1,4 @@
-/* $Id: texobj.c,v 1.45 2001/03/18 08:53:49 gareth Exp $ */
+/* $Id: texobj.c,v 1.46 2001/03/28 21:31:54 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -255,7 +255,7 @@ _mesa_test_texobj_completeness( const GLcontext *ctx,
/* Test dimension-independent attributes */
for (i = minLevel; i <= maxLevel; i++) {
if (t->Image[i]) {
- if (t->Image[i]->Format != t->Image[baseLevel]->Format) {
+ if (t->Image[i]->TexFormat != t->Image[baseLevel]->TexFormat) {
t->Complete = GL_FALSE;
incomplete(t, "Format[i] != Format[baseLevel]");
return;