Commit ae5cc3e9 authored by Brian Paul's avatar Brian Paul
Browse files

fixed glTexSubImage error check bug #128775

parent b15870fe
/* $Id: teximage.c,v 1.39.4.9 2000/11/20 21:20:02 brianp Exp $ */
/* $Id: teximage.c,v 1.39.4.10 2001/01/23 23:32:44 brianp Exp $ */
/*
* Mesa 3-D graphics library
......@@ -1089,9 +1089,9 @@ subtexture_error_check( GLcontext *ctx, GLuint dimensions,
return GL_TRUE;
}
destTex = texUnit->CurrentD[2]->Image[level];
destTex = texUnit->CurrentD[dimensions]->Image[level];
if (!destTex) {
gl_error(ctx, GL_INVALID_OPERATION, "glTexSubImage2D");
gl_error(ctx, GL_INVALID_OPERATION, "glTexSubImage1/2/3D");
return GL_TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment