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:
authorClément Foucault <foucault.clem@gmail.com>2022-04-29 18:46:46 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-04-29 18:57:38 +0300
commit3b7bce45d23e033a135b16b5da6cd741867f0a78 (patch)
treec005a505d2bf0decfad170c2368e0979d13cdbde /source/blender/blenkernel/BKE_lib_remap.h
parent9ef727d3d4e6627efa190fa308d9169da5cca83b (diff)
Fix T97686 DRW: Freeze when switching to material preview or render view
This was caused by the compilation job being created suspended (to avoid UI slowdown because of the material Preview Icons). The suspended job wasn't passing the `WM_jobs_test` in `DRW_deferred_shader_remove` and the material would still be in the compile queue with its status equal to `GPU_MAT_QUEUED`. This would block the main thread in the waiting loop. But since the job manager timer needs to execute in the main thread, the compilation job was never being pushed out of its suspended state. This lead to a complete lock situation. The solution is to use `WM_jobs_customdata_from_type` which does exactly what we need. Also fixed a nullptr free.
Diffstat (limited to 'source/blender/blenkernel/BKE_lib_remap.h')
0 files changed, 0 insertions, 0 deletions