diff options
author | Timothy Arceri <[email protected]> | 2017-03-09 22:58:37 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-12 17:24:40 +1100 |
commit | bfa95997c4ecf74a329a047359d5e8d1217da49b (patch) | |
tree | 49f64331b9c2af6e09d443aae92d1e667320bfa4 /src/mesa/main/ff_fragment_shader.cpp | |
parent | 3d253d330a47eb06bd4745c3ee41c4aa9d6143be (diff) |
mesa/glsl: introduce new gl_compile_status enum
This will allow us to tell if a shader really has been compiled or
if the shader cache has just seen it before.
Acked-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/ff_fragment_shader.cpp')
-rw-r--r-- | src/mesa/main/ff_fragment_shader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/ff_fragment_shader.cpp b/src/mesa/main/ff_fragment_shader.cpp index b2942f1aada..be382fa3ae9 100644 --- a/src/mesa/main/ff_fragment_shader.cpp +++ b/src/mesa/main/ff_fragment_shader.cpp @@ -1273,7 +1273,7 @@ create_new_program(struct gl_context *ctx, struct state_key *key) reparent_ir(p.shader->ir, p.shader->ir); - p.shader->CompileStatus = true; + p.shader->CompileStatus = compile_success; p.shader->Version = state->language_version; p.shader_program->Shaders = (gl_shader **)malloc(sizeof(*p.shader_program->Shaders)); |