mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 09:40:40 +02:00
add missing texture rectangle code in _mesa_DeleteTextures()
This commit is contained in:
parent
60b003e197
commit
e6962b183d
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue