diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 0e4d455e7..20f9f6694 100755 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -726,9 +726,9 @@ namespace bgfx { BX_TRACE("shutdown"); + getCommandBuffer(CommandBuffer::RendererShutdownBegin); frame(); - getCommandBuffer(CommandBuffer::RendererShutdownBegin); destroyTransientVertexBuffer(m_submit->m_transientVb); destroyTransientIndexBuffer(m_submit->m_transientIb); m_textVideoMemBlitter.shutdown();