Blender Git Commit Log

Git Commits -> Revision d64cd6f

Revision d64cd6f by Clément Foucault (master)
June 14, 2018, 10:03 (GMT)
Move call to drw_state_ensure_not_reused() inside the region locked by DST.gl_context_mutex.

Currently with a debug build there is a race condition where the mutex is released before the DST structure is reset to 0xFF, meaning when multiple threads are using the DRWManager it can get cleared when the main thread is using it, causing crashes.

Reviewers: fclem, brecht

Reviewed By: fclem

Tags: #bf_blender_2.8

Differential Revision: https://developer.blender.org/D3476

Commit Details:

Full Hash: d64cd6f7ee6322685c485b68118f8e987723f20b
Parent Commit: 17b029d
Lines Changed: +5, -5

1 Modified Path:

/source/blender/draw/intern/draw_manager.c (+5, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021