diff options
author | Kevin Rogovin <[email protected]> | 2014-05-19 10:52:44 +0300 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2014-08-02 11:52:41 +1200 |
commit | e41cc453619c7bef7871b78a631a0eb22e3a762d (patch) | |
tree | bdd21f8018646611b0339e5661e4eb91c7035416 /src/glsl/glcpp | |
parent | 3b69347efc314c4c01e63781e4d7ffea68460442 (diff) |
define GL_OES_standard_derivatives if extension is supported
Define the macro GL_OES_standard_derivatives as 1 if the extension
GL_OES_standard_derivatives is supported.
V2 [Chris]: Correct trailing whitespace
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r-- | src/glsl/glcpp/glcpp-parse.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index 4ee4110cb0c..e2e8aca58a8 100644 --- a/src/glsl/glcpp/glcpp-parse.y +++ b/src/glsl/glcpp/glcpp-parse.y @@ -2232,6 +2232,8 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio if (extensions != NULL) { if (extensions->OES_EGL_image_external) add_builtin_define(parser, "GL_OES_EGL_image_external", 1); + if (extensions->OES_standard_derivatives) + add_builtin_define(parser, "GL_OES_standard_derivatives", 1); } } else { add_builtin_define(parser, "GL_ARB_draw_buffers", 1); |