projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60b003e
)
add missing texture rectangle code in _mesa_DeleteTextures()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 22 Oct 2002 15:08:59 +0000
(15:08 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 22 Oct 2002 15:08:59 +0000
(15:08 +0000)
src/mesa/main/texobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texobj.c
b/src/mesa/main/texobj.c
index c27d7a6a5f017470af7ffb5cfde927aa71ec342c..39c61d492534aa37d163f4f62a59a9f8f4a4fc1c 100644
(file)
--- a/
src/mesa/main/texobj.c
+++ b/
src/mesa/main/texobj.c
@@
-1,4
+1,4
@@
-/* $Id: texobj.c,v 1.5
8 2002/10/04 19:10:08
brianp Exp $ */
+/* $Id: texobj.c,v 1.5
9 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;