summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-02-21 16:34:21 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-02-21 16:34:21 +0000
commitdf6a28d105a31cfdc3c7d52574ef81f9d31bd3bd (patch)
tree68fbe1395738ba6f4b21f1a3b1ea752330c6f127 /src/mesa/main
parenta5f618a291e67e74c56df235d45c3eb967ebb41f (diff)
fixed minor bug in copytexsubimage_error_check()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/teximage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 5a8ccfdefd..f2b40b8c4a 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1,4 +1,4 @@
-/* $Id: teximage.c,v 1.16 2000/02/12 17:26:15 brianp Exp $ */
+/* $Id: teximage.c,v 1.17 2000/02/21 16:34:21 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -967,7 +967,7 @@ copytexsubimage_error_check( GLcontext *ctx, GLuint dimensions,
return GL_TRUE;
}
- teximage = texUnit->CurrentD[3]->Image[level];
+ teximage = texUnit->CurrentD[dimensions]->Image[level];
if (!teximage) {
char message[100];
sprintf(message, "glCopyTexSubImage%dD(undefined texture)", dimensions);