summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2014-01-08 08:32:03 -0800
committerIan Romanick <[email protected]>2014-01-20 11:32:00 -0800
commit5439964270e966aa53a2c1f58969f23555bfa9ad (patch)
tree1fc7579169053b5c33108d760d9ff51cd2a32a1b /src/glsl/glcpp
parent3815264d7d07e8dd216674a32568daa55aeed680 (diff)
glsl: Add extension infrastructure for ARB_viewport_array
Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r--src/glsl/glcpp/glcpp-parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y
index 55c49819561..bbe8a06f0a8 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -1284,6 +1284,9 @@ glcpp_parser_create (const struct gl_extensions *extensions, int api)
if (extensions->AMD_shader_trinary_minmax)
add_builtin_define(parser, "GL_AMD_shader_trinary_minmax", 1);
+
+ if (extensions->ARB_viewport_array)
+ add_builtin_define(parser, "GL_ARB_viewport_array", 1);
}
}