summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-10-22 15:08:59 +0000
committerBrian Paul <[email protected]>2002-10-22 15:08:59 +0000
commite6962b183db6af2ed9d14b8b46eeaa42fde68b56 (patch)
tree33105d13be5427e7c861c5c75b4462052cbadc1d /src
parent60b003e197f87fa779d4fcdaf44ed200ed455eb3 (diff)
add missing texture rectangle code in _mesa_DeleteTextures()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texobj.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index c27d7a6a5f0..39c61d49253 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -1,4 +1,4 @@
-/* $Id: texobj.c,v 1.58 2002/10/04 19:10:08 brianp Exp $ */
+/* $Id: texobj.c,v 1.59 2002/10/22 15:08:59 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -593,6 +593,12 @@ _mesa_DeleteTextures( GLsizei n, const GLuint *texName)
if (delObj == unit->_Current)
unit->_Current = unit->CurrentCubeMap;
}
+ else if (delObj == unit->CurrentRect) {
+ unit->CurrentRect = ctx->Shared->DefaultRect;
+ ctx->Shared->DefaultRect->RefCount++;
+ if (delObj == unit->_Current)
+ unit->_Current = unit->CurrentRect;
+ }
}
ctx->NewState |= _NEW_TEXTURE;