summaryrefslogtreecommitdiff
path: root/thirdparty/wslay/wslay_event.h
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 /thirdparty/wslay/wslay_event.h
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 'thirdparty/wslay/wslay_event.h')
0 files changed, 0 insertions, 0 deletions