Blender Git Loki
Git Commits -> Revision c949c8d
Revision c949c8d by Sergey Sharybin (cycles_texture_cache) May 6, 2021, 09:25 (GMT) |
Fix T87989: Crash using OpenCL in compositor Initial report was mentioning the Classroom demo scene, but this is probably because the scene was pre-configured to be used with OpenCL. Would expect any OpenCL compositing to be failing prior to this fix. The reason why crash was happening is due to OpenCL queue being released from OpenCLDevice destructor. Is not that obvious, but when Vector (including std::vector) is holding elements by value a destructor will be called on "old" memory when vector capacitance changes. Solved by making forbidding copy semantic for compositor devices and forcing move semantic to be used. Also use emplace semantic in the devices vector initialization. |
Commit Details:
Full Hash: c949c8dc166c19b4eda109f81b5c525fcfebb742
Parent Commit: a353aeb
Committed By: Stefan Werner
Lines Changed: +26, -5