glsl: add a mechanism to allow #extension directives in the middle of shaders

Graphics / Mesa 3D Graphics Library / Mesa - Marek Olšák [amd.com] - 17 July 2014 18:58 UTC

This is needed to make Unigine Heaven 4.0 and Unigine Valley 1.0 work with sample shading.

Also, if this is disabled, the error message at least makes sense now.

b0ff18b glsl: add a mechanism to allow #extension directives in the middle of shaders
src/glsl/glsl_parser.yy | 8 ++++++++
src/glsl/glsl_parser_extras.cpp | 2 ++
src/glsl/glsl_parser_extras.h | 2 ++
src/mesa/main/mtypes.h | 5 +++++
4 files changed, 17 insertions(+)

Upstream: cgit.freedesktop.org


  • Share