mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Acquire resource API lock when calling bgfx::reset.
This commit is contained in:
@@ -3165,6 +3165,8 @@ namespace bgfx
|
||||
|
||||
BGFX_API_FUNC(void reset(uint32_t _width, uint32_t _height, uint32_t _flags, TextureFormat::Enum _format) )
|
||||
{
|
||||
BGFX_MUTEX_SCOPE(m_resourceApiLock);
|
||||
|
||||
const TextureFormat::Enum format = TextureFormat::Count != _format ? _format : m_init.resolution.format;
|
||||
|
||||
if (!g_platformDataChangedSinceReset
|
||||
|
||||
Reference in New Issue
Block a user