glsl: make sure builtins are initialized before getting the shader
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 6 Feb 2016 22:07:59 +0000 (17:07 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 7 Feb 2016 22:23:57 +0000 (17:23 -0500)
commitac57577e29643a59a33a7c2b01def2e297db3448
treebc02894522670bd2c7813f89113536f61e4d4e85
parent04c2ca5038fbfd6848cdc4f44d88b55a6047d579
glsl: make sure builtins are initialized before getting the shader

The builtin function shader is part of the builtin state, released
when glReleaseShaderCompiler is called. We must ensure that the
builtins have been (re)initialized before attempting to link with the
builtin shader.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Tested-by: Rob Herring <robh@kernel.org>
Cc: mesa-stable@lists.freedesktop.org
src/compiler/glsl/linker.cpp