summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorXavier Chantry <chantry.xavier@gmail.com>2010-04-12 14:32:02 -0700
committerBrian Paul <brianp@vmware.com>2010-04-17 10:53:00 -0600
commit3a34a2379e15e826139e7a2b179fbb49fa2f5ab0 (patch)
treeb4f607cb9baabf3e8bb86648671a9098cbe687b9 /tests
parent83182a86e405807d4fdef23ee2178f29b7da3421 (diff)
fdo25614-genmipmap: Require OpenGL 1.3.
glActiveTexture is available only if the GL version is 1.3 or greater. Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/fdo25614-genmipmap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/bugs/fdo25614-genmipmap.c b/tests/bugs/fdo25614-genmipmap.c
index 6f8c60e6..c5467c48 100644
--- a/tests/bugs/fdo25614-genmipmap.c
+++ b/tests/bugs/fdo25614-genmipmap.c
@@ -57,6 +57,11 @@ piglit_init(int argc, char **argv)
{
GLint alpha_bits;
+ if (!GLEW_VERSION_1_3) {
+ printf("Requires OpenGL 1.3\n");
+ piglit_report_result(PIGLIT_SKIP);
+ }
+
loadTex();
glGetIntegerv(GL_ALPHA_BITS, &alpha_bits);