mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
s/MAX_TEXTURE_LEVELS/SIS_MAX_TEXTURE_LEVELS/ and add assertion (bug 11806)
This commit is contained in:
parent
6dae3f8c88
commit
6e6a02261a
1 changed files with 3 additions and 1 deletions
|
|
@ -130,6 +130,8 @@ sisAllocTexImage( sisContextPtr smesa, sisTexObjPtr t, int level,
|
|||
static void
|
||||
sisFreeTexImage( sisContextPtr smesa, sisTexObjPtr t, int level )
|
||||
{
|
||||
assert(level >= 0);
|
||||
assert(level < SIS_MAX_TEXTURE_LEVELS);
|
||||
if (t->image[level].Data == NULL)
|
||||
return;
|
||||
|
||||
|
|
@ -213,7 +215,7 @@ sisDeleteTexture( GLcontext * ctx, struct gl_texture_object *texObj )
|
|||
*/
|
||||
return;
|
||||
}
|
||||
for (i = 0; i < MAX_TEXTURE_LEVELS; i++) {
|
||||
for (i = 0; i < SIS_MAX_TEXTURE_LEVELS; i++) {
|
||||
sisFreeTexImage( smesa, t, i );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue