[Piglit] [PATCH 2/2] gen_texture_query_lod_tests.py: Don't emit #extension if no extensions

Matt Turner mattst88 at gmail.com
Tue Aug 6 21:33:23 PDT 2013


The GLSL 4.00 tests previously contained lines like

 #extension : enable

which would have prevented them from working.
---
 generated_tests/gen_texture_query_lod_tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generated_tests/gen_texture_query_lod_tests.py b/generated_tests/gen_texture_query_lod_tests.py
index be30a69..99a6628 100755
--- a/generated_tests/gen_texture_query_lod_tests.py
+++ b/generated_tests/gen_texture_query_lod_tests.py
@@ -131,7 +131,7 @@ for api, requirement in requirements.iteritems():
                 os.makedirs(dirname)
 
             version = requirement['version']
-            extensions = [requirement['extension']]
+            extensions = [requirement['extension']] if requirement['extension'] else []
 
             # samplerCubeArray types are part GLSL 4.00
             # or GL_ARB_texture_cube_map_array.
-- 
1.8.1.5



More information about the Piglit mailing list