Fix rt-gamma-test build with gcc-4.6.

Fixes this GCC error.
main.c: In function 'render':
main.c:85:16: error: variable 'gamma' set but not used [-Werror=unused-but-set-variable]
This commit is contained in:
Vinson Lee 2011-07-22 08:11:15 +00:00
parent 4443a73481
commit a94d5e81a5

View file

@ -82,7 +82,7 @@ render(void)
SVGA3dPrimitiveRange *ranges;
static Matrix view, instance;
static uint32 frame = 0;
float x, y, gamma;
float x, y;
Matrix_Copy(view, gIdentityMatrix);
Matrix_Scale(view, 0.5, 0.5, 0.5, 1.0);
@ -90,8 +90,6 @@ render(void)
Matrix_RotateX(view, ++frame * 0.001f);
Matrix_Translate(view, 0, 0, 15);
gamma = 0.f;
for (y = 0; y < GRID_Y_COUNT; y++) {
for (x = 0; x < GRID_X_COUNT; x++) {
float gamma = (x + y * GRID_X_COUNT) * GAMMA_STEP;