diff options
author | Marek Olšák <[email protected]> | 2014-07-08 20:20:22 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-07-18 01:58:58 +0200 |
commit | b0ff18bd3441ce7f28354686934440a92826eaf8 (patch) | |
tree | 5e5828d8da6124a40b0a18d138b60905c6b5ecab /src/mesa/main | |
parent | 392c9f8dfe11034c44aeec72217e6f12dce20490 (diff) |
glsl: add a mechanism to allow #extension directives in the middle of shaders
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.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/mtypes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index b699021adbd..91d9172f9c1 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3363,6 +3363,11 @@ struct gl_constants GLuint ForceGLSLVersion; /** + * Allow GLSL #extension directives in the middle of shaders. + */ + GLboolean AllowGLSLExtensionDirectiveMidShader; + + /** * Does the driver support real 32-bit integers? (Otherwise, integers are * simulated via floats.) */ |