mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
u_surfaces: fix surface leak due to off by one
This commit is contained in:
parent
58b104d7f0
commit
24f5ebb1d7
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ util_surfaces_destroy(struct util_surfaces *us, struct pipe_resource *pt, void (
|
|||
if(us->u.array)
|
||||
{
|
||||
unsigned i;
|
||||
for(i = 0; i < pt->last_level; ++i)
|
||||
for(i = 0; i <= pt->last_level; ++i)
|
||||
{
|
||||
struct pipe_surface *ps = us->u.array[i];
|
||||
if(ps)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue