summaryrefslogtreecommitdiff
path: root/tests/bugs
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-04-06 13:32:05 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-05-23 21:57:07 -0700
commit7cedfbae353c13da9065c52936cbc6e9c2e2d55d (patch)
treeaf7f276effb1a9107456aef14e25cb6506511afb /tests/bugs
parentdf3ad924503de5f0f27ff167917cfd4b7c37c9e6 (diff)
tests: Remove glutExtensionSupported
Replace it with piglit_is_extension_supported or piglit_require_extension, as appropriate. Reviewed-by: Pauli Nieminen <pauli.nieminen@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/crash-texparameter-before-teximage.c4
-rw-r--r--tests/bugs/tex1d-2dborder.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/bugs/crash-texparameter-before-teximage.c b/tests/bugs/crash-texparameter-before-teximage.c
index d35f348e0..485f2af23 100644
--- a/tests/bugs/crash-texparameter-before-teximage.c
+++ b/tests/bugs/crash-texparameter-before-teximage.c
@@ -26,9 +26,9 @@ piglit_init(int argc, char **argv)
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
- if (glutExtensionSupported("GL_ARB_shadow"))
+ if (piglit_is_extension_supported("GL_ARB_shadow"))
glTexParameteri(GL_TEXTURE_2D, GL_DEPTH_TEXTURE_MODE_ARB, GL_ALPHA);
- if (glutExtensionSupported("GL_ARB_shadow_ambient"))
+ if (piglit_is_extension_supported("GL_ARB_shadow_ambient"))
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_COMPARE_FAIL_VALUE_ARB, 0.1);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
diff --git a/tests/bugs/tex1d-2dborder.c b/tests/bugs/tex1d-2dborder.c
index 5a0527946..881ab4709 100644
--- a/tests/bugs/tex1d-2dborder.c
+++ b/tests/bugs/tex1d-2dborder.c
@@ -90,7 +90,7 @@ piglit_display(void)
pass &= test(GL_CLAMP_TO_EDGE, 2, 0);
pass &= test(GL_CLAMP_TO_BORDER, 3, 0);
pass &= test(GL_MIRRORED_REPEAT, 0, 1);
- if (glutExtensionSupported("GL_EXT_texture_mirror_clamp")) {
+ if (piglit_is_extension_supported("GL_EXT_texture_mirror_clamp")) {
pass &= test(GL_MIRROR_CLAMP_EXT, 1, 1);
pass &= test(GL_MIRROR_CLAMP_TO_EDGE_EXT, 2, 1);
pass &= test(GL_MIRROR_CLAMP_TO_BORDER_EXT, 3, 1);