Commit 4757d04d authored by Vinson Lee's avatar Vinson Lee

glsl-lod-bias: Check for OpenGL 2.0.

parent f50bfda9
......@@ -89,9 +89,6 @@ static const char *fragShaderText2 =
static void
Init()
{
glewInit();
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
......@@ -258,6 +255,13 @@ int main(int argc, char **argv)
glutCreateWindow("glsl-lod-bias");
glutDisplayFunc(display);
glutKeyboardFunc(piglit_escape_exit_key);
glewInit();
if (!GLEW_VERSION_2_0) {
printf("Requires OpenGL 2.0\n");
piglit_report_result(PIGLIT_SKIP);
exit(1);
}
Init();
......
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