[Piglit] [PATCH 2/3] built-in-constants: fix desktop GL version check for geometry shaders

Timothy Arceri tarceri at itsqueeze.com
Tue May 29 00:52:16 UTC 2018


The check is meant to compare GLSL version which for OpenGL 3.2 is
1.50.
---
 tests/shaders/built-in-constants.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/shaders/built-in-constants.c b/tests/shaders/built-in-constants.c
index e1512a04c..df5fa2a84 100644
--- a/tests/shaders/built-in-constants.c
+++ b/tests/shaders/built-in-constants.c
@@ -400,7 +400,7 @@ create_shader(GLenum type)
 		 * OpenGL 3.2.
 		 */
 		if (type == GL_GEOMETRY_SHADER &&
-		    required_glsl_version < 320)
+		    required_glsl_version < 150)
 			return 0;
 	}
 	/* Only create compute shaders when explicitly requested
-- 
2.17.0



More information about the Piglit mailing list