Commit b6e3e491 authored by Vinson Lee's avatar Vinson Lee

glsl-lod-bias: Fix compile errors with MSVC.

parent 95896560
......@@ -171,8 +171,8 @@ compileLinkProg()
static void
loadTex()
{
int height = 4;
int width = 4;
#define height 4
#define width 4
int i, j;
GLfloat texData[width][height][4];
......@@ -206,12 +206,18 @@ loadTex()
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0,
GL_RGBA, GL_FLOAT, texData);
#undef height
#undef width
}
static void
display()
{
GLboolean pass = GL_TRUE;
float grey[3] = {0.466667, 0.533333, 0.466667};
float green[3] = {0, 1, 0};
glClear(GL_COLOR_BUFFER_BIT);
......@@ -227,11 +233,6 @@ display()
glPopMatrix();
GLboolean pass = GL_TRUE;
float grey[3] = {0.466667, 0.533333, 0.466667};
float green[3] = {0, 1, 0};
pass = pass && piglit_probe_pixel_rgb(132, 125, grey);
pass = pass && piglit_probe_pixel_rgb(205, 125, green);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment