mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
auxiliary: Move loop variable declaration outside for loop.
Fixes MSVC build.
This commit is contained in:
parent
c628a2e0c7
commit
478f19ff49
1 changed files with 2 additions and 1 deletions
|
|
@ -98,7 +98,8 @@ util_surfaces_destroy(struct util_surfaces *us, struct pipe_resource *pt, void (
|
|||
{
|
||||
if(us->u.array)
|
||||
{
|
||||
for(unsigned i = 0; i < pt->last_level; ++i)
|
||||
unsigned 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