define GL_OES_standard_derivatives if extension is supported
authorKevin Rogovin <kevin.rogovin@intel.com>
Mon, 19 May 2014 07:52:44 +0000 (10:52 +0300)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 1 Aug 2014 23:52:41 +0000 (11:52 +1200)
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 <chrisf@ijw.co.nz>
src/glsl/glcpp/glcpp-parse.y

index 4ee4110cb0c4f9cd4d5e92d5a1e6ae47266d83f7..e2e8aca58a86ac44ae97237cb4c6c22ddd2448a6 100644 (file)
@@ -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);