diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2016-07-21 11:49:12 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2016-08-08 13:58:02 -0700 |
commit | cab1118c8158f4a8d79c33096a469545afbb2c9d (patch) | |
tree | e028f5a91ac635efa34de393bc6ec33141885c61 /tests/shaders | |
parent | 8e4ed18cdd5e4ed401e52fee2ab4600472a2a0e0 (diff) |
built-in-constants: Fix up tessellation shader #extension work-around for ES
v2: Simplify the OES vs ARB string handling. Suggested by Tapani.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Diffstat (limited to 'tests/shaders')
-rw-r--r-- | tests/shaders/built-in-constants.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/shaders/built-in-constants.c b/tests/shaders/built-in-constants.c index be4eb64da..41d0a99f3 100644 --- a/tests/shaders/built-in-constants.c +++ b/tests/shaders/built-in-constants.c @@ -463,10 +463,13 @@ piglit_init(int argc, char **argv) piglit_report_result(PIGLIT_SKIP); /* Tessellation shaders must use the #extension directive. */ - if (piglit_is_extension_supported("GL_ARB_tessellation_shader")) { + const char *const tess_ext_name = es_shader + ? "GL_OES_tessellation_shader" + : "GL_ARB_tessellation_shader"; + if (piglit_is_extension_supported(tess_ext_name)) { assert(num_required_extensions < ARRAY_SIZE(required_extensions)); required_extensions[num_required_extensions] = - strdup("GL_ARB_tessellation_shader"); + strdup(tess_ext_name); num_required_extensions++; } |