[Piglit] [v2 PATCH 2/3] arb_internalformat_query2: more than one way to support GEOMETRY_TEXTURE

Alejandro PiƱeiro apinheiro at igalia.com
Sat Jan 27 09:44:01 UTC 2018


v2: GL_EXT_geometry_shader should not be checked, as is only for GLES
    (Ilia Mirkin)
---
 tests/spec/arb_internalformat_query2/common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/spec/arb_internalformat_query2/common.c b/tests/spec/arb_internalformat_query2/common.c
index 9fa5fa9d11..60109eaf68 100644
--- a/tests/spec/arb_internalformat_query2/common.c
+++ b/tests/spec/arb_internalformat_query2/common.c
@@ -617,7 +617,8 @@ check_query2_pname_dependencies(const GLenum pname)
                 break;
 
         case GL_GEOMETRY_TEXTURE:
-                if (!piglit_is_extension_supported("GL_ARB_geometry_shader4"))
+                if (!piglit_is_extension_supported("GL_ARB_geometry_shader4") &&
+                    !(piglit_get_gl_version() >= 32))
                         return false;
                 break;
 
-- 
2.11.0



More information about the Piglit mailing list