diff options
author | Dave Airlie <[email protected]> | 2012-03-13 14:53:25 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-03-25 17:12:24 +0100 |
commit | b78a77f979b21a84aecb6fa4f19a2ed51a48c306 (patch) | |
tree | 87261207856dfa4e968e0b2623f4d18495f2d237 /src/glsl/builtins/tools/generate_builtins.py | |
parent | 989e013b801095406ccbb22314dc263c6aeb0d5c (diff) |
glsl: initialise const force glsl extension warning in fake ctx
valgrind complained about an uninitialised value being used in
glsl_parser_extras.cpp, and this was the one it was giving out about.
Just initialise the value in the fakectx.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/glsl/builtins/tools/generate_builtins.py')
-rwxr-xr-x | src/glsl/builtins/tools/generate_builtins.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/builtins/tools/generate_builtins.py b/src/glsl/builtins/tools/generate_builtins.py index 9c1aeb56242..0d97140174f 100755 --- a/src/glsl/builtins/tools/generate_builtins.py +++ b/src/glsl/builtins/tools/generate_builtins.py @@ -164,6 +164,7 @@ read_builtins(GLenum target, const char *protos, const char **functions, unsigne fakeCtx.API = API_OPENGL; fakeCtx.Const.GLSLVersion = 140; fakeCtx.Extensions.ARB_ES2_compatibility = true; + fakeCtx.Const.ForceGLSLExtensionsWarn = false; gl_shader *sh = _mesa_new_shader(NULL, 0, target); struct _mesa_glsl_parse_state *st = new(sh) _mesa_glsl_parse_state(&fakeCtx, target, sh); |