diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-02-28 00:01:41 -0800 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-02-28 08:14:35 -0800 |
commit | 2b5770e652f0e6620b52971755bd7eb31c16ad7d (patch) | |
tree | 39ee2d231f953f5f30589bf4b122e689b095ed94 /src/gallium/drivers | |
parent | b210c3fb3f1367525ab690ddb7cf9f0dcc1e7c99 (diff) |
r300-gallium: Fix C99 error.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index edd4370663..8251a597ea 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -31,8 +31,9 @@ static void r300_setup_miptree(struct r300_texture* tex) { struct pipe_texture* base = &tex->tex; int stride, size, offset; + int i; - for (int i = 0; i <= base->last_level; i++) { + for (i = 0; i <= base->last_level; i++) { if (i > 0) { base->width[i] = minify(base->width[i-1]); base->height[i] = minify(base->height[i-1]); |