diff options
author | Timothy Arceri <[email protected]> | 2017-02-17 16:27:53 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-02-17 16:31:47 +1100 |
commit | 172c48cc15e2a7b42a7de8ff9164ad8733155667 (patch) | |
tree | 8ef8c1d04cdb80f53d08ef78f08207715d668aee /src/mesa/program/ir_to_mesa.cpp | |
parent | a2bf0954fbe54d44ea8c33f71ef462dc7cda385e (diff) |
glsl: fix scons builds with shader cache
For now its disabled for scons so wrap glsl cache calls in a
define conditional.
Diffstat (limited to 'src/mesa/program/ir_to_mesa.cpp')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 67c9267ac09..a4f61ac23ef 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -3130,8 +3130,10 @@ _mesa_glsl_link_shader(struct gl_context *ctx, struct gl_shader_program *prog) } } +#ifdef ENABLE_SHADER_CACHE if (prog->data->LinkStatus) shader_cache_write_program_metadata(ctx, prog); +#endif } } /* extern "C" */ |