glActiveTexture is available only if the GL version is 1.3 or greater.
Signed-off-by: Xavier Chantry <[email protected]>
---
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
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev