Commit 20eafccd authored by Vinson Lee's avatar Vinson Lee

Check for OpenGL 1.3 for tests that use glActiveTexture.

parent b3ea0e92
......@@ -400,6 +400,13 @@ int main(int argc, char *argv[])
glutKeyboardFunc(piglit_escape_exit_key);
glutDisplayFunc(Redisplay);
glewInit();
if (!GLEW_VERSION_1_3) {
printf("Requires OpenGL 1.3\n");
piglit_report_result(PIGLIT_SKIP);
exit(1);
}
Init();
glutMainLoop();
return 0;
......
......@@ -251,6 +251,13 @@ int main(int argc, char *argv[])
glutReshapeFunc(Reshape);
glutDisplayFunc(Redisplay);
glewInit();
if (!GLEW_VERSION_1_3) {
printf("Requires OpenGL 1.3\n");
piglit_report_result(PIGLIT_SKIP);
exit(1);
}
Init();
glutMainLoop();
return 0;
......
......@@ -340,6 +340,13 @@ int main(int argc, char *argv[])
glutKeyboardFunc(piglit_escape_exit_key);
glutDisplayFunc(Redisplay);
glewInit();
if (!GLEW_VERSION_1_3) {
printf("Requires OpenGL 1.3\n");
piglit_report_result(PIGLIT_SKIP);
exit(1);
}
Init();
glutMainLoop();
return 0;
......
......@@ -359,6 +359,13 @@ int main(int argc, char *argv[])
glutKeyboardFunc(Key);
glutDisplayFunc(Redisplay);
glewInit();
if (!GLEW_VERSION_1_3) {
printf("Requires OpenGL 1.3\n");
piglit_report_result(PIGLIT_SKIP);
exit(1);
}
Init();
glutMainLoop();
return 0;
......
......@@ -349,6 +349,13 @@ int main(int argc, char *argv[])
glutKeyboardFunc(Key);
}
glewInit();
if (!GLEW_VERSION_1_3) {
printf("Requires OpenGL 1.3\n");
piglit_report_result(PIGLIT_SKIP);
exit(1);
}
Init();
glutMainLoop();
return 0;
......
......@@ -208,6 +208,13 @@ int main(int argc, char**argv)
glutKeyboardFunc(Key);
glutDisplayFunc(Display);
glewInit();
if (!GLEW_VERSION_1_3) {
printf("Requires OpenGL 1.3\n");
piglit_report_result(PIGLIT_SKIP);
exit(1);
}
init();
glutMainLoop();
return 0;
......
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