summaryrefslogtreecommitdiff
path: root/modules/squish
diff options
context:
space:
mode:
authorTom Coxon <tom.c.coxon@gmail.com>2021-09-07 16:39:37 +0100
committerTom Coxon <tom.c.coxon@gmail.com>2021-09-21 11:51:39 +0100
commitdbe757102c6503eb564c9edc699c89afe63b91cd (patch)
tree6d65b969a9f7c2e6b67f73bbc3874622be9f065e /modules/squish
parent93aa158b5e1b3b11c3482834504e791c3898baf0 (diff)
Prevent shaders from generating code before the constructor finishes.
Fixes #43733: "creating SpatialMaterial in a separate thread creates invalid shaders (temporarily)." The bug occurred because various setters called in materials' constructors add materials to queues that are processed on the main thread. This means that when the materials are created in another thread, they can be processed on the main thread before the constructor has finished. The fix adds a flag to affected materials that prevents them from being added to the queue until their constructors have finished initialising all the members.
Diffstat (limited to 'modules/squish')
0 files changed, 0 insertions, 0 deletions