Commit 0b5fe7f2 authored by Vinson Lee's avatar Vinson Lee

bgra-sec-color-pointer: Fix compile errors with MSVC.

parent 475674cc
......@@ -84,6 +84,12 @@ Init()
static void
display()
{
GLboolean pass = GL_TRUE;
GLfloat red[3]={1.0, 0.0, 0.0};
GLfloat blue[3]={0.0, 0.0, 1.0};
GLfloat greyRed[3]={1.0, 0.6, 0.6};
GLfloat greyBlue[3]={0.6, 0.6, 1.0};
glClear(GL_COLOR_BUFFER_BIT);
glEnableClientState(GL_VERTEX_ARRAY);
......@@ -119,12 +125,6 @@ display()
glPopMatrix();
glPopMatrix();
GLboolean pass = GL_TRUE;
GLfloat red[3]={1.0, 0.0, 0.0};
GLfloat blue[3]={0.0, 0.0, 1.0};
GLfloat greyRed[3]={1.0, 0.6, 0.6};
GLfloat greyBlue[3]={0.6, 0.6, 1.0};
pass = pass && piglit_probe_pixel_rgb(200, 200, red);
pass = pass && piglit_probe_pixel_rgb(275, 200, blue);
pass = pass && piglit_probe_pixel_rgb(200, 125, greyRed);
......
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