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/drivers | |
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/drivers')
-rw-r--r-- | src/mesa/drivers/common/meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 2db4668ef7d..d8deaaf3713 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -131,7 +131,7 @@ meta_compile_shader_with_debug(struct gl_context *ctx, gl_shader_stage stage, sh = _mesa_new_shader(name, stage); sh->Source = strdup(source); - sh->CompileStatus = false; + sh->CompileStatus = compile_failure; _mesa_compile_shader(ctx, sh); if (!sh->CompileStatus) { |