Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-09-23 07:33:41 +0300
committerCampbell Barton <campbell@blender.org>2022-09-23 07:33:40 +0300
commitcda2dc721dce9db9ea94b059ccd1cc7a3ae73aa6 (patch)
tree15de112334bda4c953f0941323c2f0fe14c4dad0 /source/blender/draw
parente9344d329ffa93f2df0e20f727f478e70e4294cc (diff)
Cleanup: compiler warnings
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/intern/draw_manager_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager_shader.c b/source/blender/draw/intern/draw_manager_shader.c
index 6f8df54ead3..f452cd47cb7 100644
--- a/source/blender/draw/intern/draw_manager_shader.c
+++ b/source/blender/draw/intern/draw_manager_shader.c
@@ -118,7 +118,7 @@ static void drw_deferred_shader_compilation_exec(
BLI_spin_lock(&comp->list_lock);
/* Pop tail because it will be less likely to lock the main thread
* if all GPUMaterials are to be freed (see DRW_deferred_shader_remove()). */
- LinkData *link = (LinkData *)BLI_poptail(&comp->optimize_queue);
+ link = (LinkData *)BLI_poptail(&comp->optimize_queue);
GPUMaterial *optimize_mat = link ? (GPUMaterial *)link->data : NULL;
if (optimize_mat) {
/* Avoid another thread freeing the material during optimization. */