summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/glcpp
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-05-24 19:57:47 -0400
committerIlia Mirkin <[email protected]>2016-05-25 09:50:07 -0400
commit601a5195ebab77220c4d1447c3e734bc5f769e7a (patch)
treebc1af859aaf880742a3e201d6d522e9cd6af1f53 /src/compiler/glsl/glcpp
parent9690ab0cdf3cdbcdabce4858fd84711b3afbb9aa (diff)
glsl: add GL_EXT_clip_cull_distance define, add helpers
Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Tobias Klausmann <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glcpp')
-rw-r--r--src/compiler/glsl/glcpp/glcpp-parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/glsl/glcpp/glcpp-parse.y b/src/compiler/glsl/glcpp/glcpp-parse.y
index e44f0749e85..ee0d8f1942f 100644
--- a/src/compiler/glsl/glcpp/glcpp-parse.y
+++ b/src/compiler/glsl/glcpp/glcpp-parse.y
@@ -2310,6 +2310,8 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
add_builtin_define(parser, "GL_OES_texture_storage_multisample_2d_array", 1);
if (extensions->ARB_blend_func_extended)
add_builtin_define(parser, "GL_EXT_blend_func_extended", 1);
+ if (extensions->ARB_cull_distance)
+ add_builtin_define(parser, "GL_EXT_clip_cull_distance", 1);
if (version >= 310) {
if (extensions->ARB_shader_image_load_store)