summaryrefslogtreecommitdiff
path: root/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-01-23 23:35:23 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-01-23 23:35:23 +0000
commitf2718b0966f54049056e16e7cca08718341557b2 (patch)
treec8b0876edd836f27b706be3da04ff1683a519022 /src/mesa/main/teximage.c
parent39927e60eafd8b9f5c9b2fea44d2ccd490d8ca35 (diff)
fixed glTexSubImage error check bug #128775
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r--src/mesa/main/teximage.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 253acf65da..9e2609dd58 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1,4 +1,4 @@
-/* $Id: teximage.c,v 1.69 2000/12/26 05:09:29 keithw Exp $ */
+/* $Id: teximage.c,v 1.70 2001/01/23 23:35:23 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1252,7 +1252,8 @@ subtexture_error_check( GLcontext *ctx, GLuint dimensions,
return GL_TRUE;
}
- destTex = texUnit->Current2D->Image[level];
+ destTex = _mesa_select_tex_image(ctx, texUnit, target, level);
+
if (!destTex) {
gl_error(ctx, GL_INVALID_OPERATION, "glTexSubImage2D");
return GL_TRUE;