Blender Git Loki

Git Commits -> Revision e6425aa

Revision e6425aa by Julian Eisel (master)
August 14, 2019, 13:27 (GMT)
Manage GPU_matrix stacks per GPUContext

Previously, we had one global `GPU_matrix` stack, so the API was not
thread safe. This patch makes the stack be per `GPUContext`, effectively
making it local per thread (`GPUContext` is located in thread local
storage).

Reviewed By: brecht
Differential Revision: https://developer.blender.org/D5405

Commit Details:

Full Hash: e6425aa2bf3e6a9bba2f10066dc3f09cea11086f
Parent Commit: 4074ab3
Lines Changed: +106, -33

1 Added Path:

/source/blender/gpu/intern/gpu_matrix_private.h (+35, -0) (View)

4 Modified Paths:

/source/blender/gpu/CMakeLists.txt (+1, -0) (Diff)
/source/blender/gpu/intern/gpu_context.cpp (+10, -0) (Diff)
/source/blender/gpu/intern/gpu_context_private.h (+2, -0) (Diff)
/source/blender/gpu/intern/gpu_matrix.c (+58, -33) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021