diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2014-11-25 06:10:30 -0500 |
---|---|---|
committer | Tapani Pälli <tapani.palli@intel.com> | 2015-01-14 07:48:51 +0200 |
commit | f52fe39d311f3b1988edaeb4765279bbe337b1b7 (patch) | |
tree | f2ddf1b2cff26f9ee99234018aef0e041daca760 /src/glsl/glcpp | |
parent | 3a5c7e47fdcfb3e322c0756e960cbcf8403e4230 (diff) | |
download | external_mesa3d-f52fe39d311f3b1988edaeb4765279bbe337b1b7.zip external_mesa3d-f52fe39d311f3b1988edaeb4765279bbe337b1b7.tar.gz external_mesa3d-f52fe39d311f3b1988edaeb4765279bbe337b1b7.tar.bz2 |
mesa/glsl/glapi: enable GL_EXT_draw_buffers extension
Patch enables ES2 extension that utilizes existing ES3 functionality.
Changes make all the subtests to run and pass in WebGL conformance
test 'webgl-draw-buffers' when running Chrome on OpenGL ES, also
Piglit test 'draw_buffers_gles2' passes.
v2: remove unused boolean (Ilia Mirkin)
v3: proper error checking for invalid values (Chad Versace)
v4: run error check explicitly for ES2 and ES3 (Kenneth Graunke)
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r-- | src/glsl/glcpp/glcpp-parse.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index 9b1a4f4..9e705ef 100644 --- a/src/glsl/glcpp/glcpp-parse.y +++ b/src/glsl/glcpp/glcpp-parse.y @@ -2375,6 +2375,7 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio if (parser->is_gles) { add_builtin_define(parser, "GL_ES", 1); add_builtin_define(parser, "GL_EXT_separate_shader_objects", 1); + add_builtin_define(parser, "GL_EXT_draw_buffers", 1); if (extensions != NULL) { if (extensions->OES_EGL_image_external) |