[Mesa-dev] [PATCH 1/2] fdo25614-genmipmap: Require OpenGL 1.3.
Xavier Chantry
chantry.xavier at gmail.com
Mon Apr 12 14:32:02 PDT 2010
glActiveTexture is available only if the GL version is 1.3 or greater.
Signed-off-by: Xavier Chantry <chantry.xavier at gmail.com>
---
tests/bugs/fdo25614-genmipmap.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tests/bugs/fdo25614-genmipmap.c b/tests/bugs/fdo25614-genmipmap.c
index 6f8c60e..c5467c4 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);
--
1.7.0.1
More information about the mesa-dev
mailing list