[Piglit] [PATCH 1/2] arb_shader_atomic_counters: fix gs support check
Ilia Mirkin
imirkin at alum.mit.edu
Mon Jun 16 22:52:43 PDT 2014
---
Not actually an issue on the blob, since it supports ARB_geometry_shader4, but
Chris Forbes pointed it out. This also works.
tests/spec/arb_shader_atomic_counters/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/spec/arb_shader_atomic_counters/common.c b/tests/spec/arb_shader_atomic_counters/common.c
index 7547d5d..95d809e 100644
--- a/tests/spec/arb_shader_atomic_counters/common.c
+++ b/tests/spec/arb_shader_atomic_counters/common.c
@@ -211,7 +211,7 @@ atomic_counters_supported(GLenum shader_stage)
return n;
case GL_GEOMETRY_SHADER:
- if (piglit_is_extension_supported("GL_ARB_geometry_shader4"))
+ if (piglit_get_gl_version() >= 32)
glGetIntegerv(GL_MAX_GEOMETRY_ATOMIC_COUNTERS, &n);
return n;
--
1.8.5.5
More information about the Piglit
mailing list