diff options
author | Carl Worth <[email protected]> | 2012-12-04 16:29:00 -0800 |
---|---|---|
committer | Carl Worth <[email protected]> | 2013-01-11 13:55:41 -0800 |
commit | c0c9c9966f54b2e4a4eb2ffa2abe343c1b82b823 (patch) | |
tree | 5321475645fa700f9a91bf6018e06ddf4b1401ee /src/mesa/main | |
parent | c6c575c69abd104397946cbd8f20b3451fdeb369 (diff) |
driconf: Add a new option: disable_glsl_line_continuations
This is to enable a quirk for Savage2 which includes a shader with a stray '\'
at the end of a comment line. Interpreting that backslash as a line
continuation will break the compilation of the shader, so we need a way to
disable this.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/mtypes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index f44ec4947ed..f7b90cfcf17 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2984,6 +2984,12 @@ struct gl_constants * \sa _mesa_init_constants */ GLuint64 MaxElementIndex; + + /** + * Disable interpretation of line continuations (lines ending with a + * backslash character ('\') in GLSL source. + */ + GLboolean DisableGLSLLineContinuations; }; |