diff options
author | Ian Romanick <[email protected]> | 2010-07-16 15:51:50 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-07-19 14:50:43 -0700 |
commit | 25f51d3b9b8c36c41cd23d2797b6a06f6e27ff86 (patch) | |
tree | b2af2b9e217ba74b212d28a8edc94c9979990a08 /src/mesa/shader/ir_to_mesa.cpp | |
parent | b64e979971e764ec1df8800d31c755298e618ba0 (diff) |
linker: Track and validate GLSL versions used in shaders
Diffstat (limited to 'src/mesa/shader/ir_to_mesa.cpp')
-rw-r--r-- | src/mesa/shader/ir_to_mesa.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp index 58320c92174..557f5d319d2 100644 --- a/src/mesa/shader/ir_to_mesa.cpp +++ b/src/mesa/shader/ir_to_mesa.cpp @@ -2234,6 +2234,7 @@ _mesa_glsl_compile_shader(GLcontext *ctx, struct gl_shader *shader) shader->CompileStatus = !state->error; shader->InfoLog = state->info_log; + shader->Version = state->language_version; /* Retain any live IR, but trash the rest. */ foreach_list(node, shader->ir) { |