From dfdb9fda826bb6c5dac2c55d9efcd1644a0dd2b9 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 1 Feb 2011 23:47:26 -0800 Subject: [PATCH] glsl: Fix use of uninitialized values in _mesa_glsl_parse_state ctor. This has probably existed since e5e34ab18eeaffa465 or so. NOTE: This is a candidate for the 7.9 and 7.10 branches. --- src/glsl/builtins/tools/generate_builtins.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glsl/builtins/tools/generate_builtins.py b/src/glsl/builtins/tools/generate_builtins.py index 998ff512abc..edd3c70e00b 100755 --- a/src/glsl/builtins/tools/generate_builtins.py +++ b/src/glsl/builtins/tools/generate_builtins.py @@ -152,6 +152,8 @@ read_builtins(GLenum target, const char *protos, const char **functions, unsigne { struct gl_context fakeCtx; fakeCtx.API = API_OPENGL; + fakeCtx.Const.GLSLVersion = 130; + fakeCtx.Extensions.ARB_ES2_compatibility = true; gl_shader *sh = _mesa_new_shader(NULL, 0, target); struct _mesa_glsl_parse_state *st = new(sh) _mesa_glsl_parse_state(&fakeCtx, target, sh); -- 2.30.2