Browse Source

signal NEW_TEXTURING in glDeleteTextures() if deleting a currently bound texture

tags/mesa_3_4_2
Brian Paul 25 years ago
parent
commit
0e60b90ed5
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/mesa/main/texobj.c

+ 2
- 1
src/mesa/main/texobj.c View File

@@ -1,4 +1,4 @@
/* $Id: texobj.c,v 1.23.4.9 2000/12/14 23:10:39 brianp Exp $ */
/* $Id: texobj.c,v 1.23.4.10 2001/03/23 02:00:33 brianp Exp $ */

/*
* Mesa 3-D graphics library
@@ -493,6 +493,7 @@ _mesa_DeleteTextures( GLsizei n, const GLuint *texName)
ctx->Shared->DefaultD[d]->RefCount++;
t->RefCount--;
ASSERT( t->RefCount >= 0 );
ctx->NewState |= NEW_TEXTURING;
}
}
}

Loading…
Cancel
Save