summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-03-01 10:21:07 -0700
committerBrian Paul <[email protected]>2014-03-03 13:08:58 -0700
commitd129ea7fa2e57288f64cd247a0ac6d876e1717d2 (patch)
tree599098d707f4b1c506b0e8ac4f614ea2a5d2de4f /src/mesa/main/shaderapi.c
parent2706db701d6217d245325f90f014233ff40ba18c (diff)
mesa: switch to c11 mutex functions
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r--src/mesa/main/shaderapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index e2f3462af2b..5060cbb0ba7 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -124,7 +124,7 @@ _mesa_init_shader_state(struct gl_context *ctx)
/* Extended for ARB_separate_shader_objects */
ctx->Shader.RefCount = 1;
- _glthread_INIT_MUTEX(ctx->Shader.Mutex);
+ mtx_init(&ctx->Shader.Mutex, mtx_plain);
}
@@ -145,7 +145,7 @@ _mesa_free_shader_state(struct gl_context *ctx)
/* Extended for ARB_separate_shader_objects */
assert(ctx->Shader.RefCount == 1);
- _glthread_DESTROY_MUTEX(ctx->Shader.Mutex);
+ mtx_destroy(&ctx->Shader.Mutex);
}