Browse Source

fixed glTexSubImage error check bug #128775

tags/mesa_3_4_1
Brian Paul 25 years ago
parent
commit
ae5cc3e94c
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/mesa/main/teximage.c

+ 3
- 3
src/mesa/main/teximage.c View File

@@ -1,4 +1,4 @@
/* $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;
}


Loading…
Cancel
Save