mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-30 04:35:35 +00:00
Don't present BGFX_FRAME_FLUSH frames. Fixed D3D12/VK flush sync. (#3771)
This commit is contained in:
+3
-1
@@ -2778,7 +2778,7 @@ namespace bgfx
|
||||
|
||||
if (!m_flipAfterRender)
|
||||
{
|
||||
if (!m_render->m_flush)
|
||||
if (!m_flushPrevFrame)
|
||||
{
|
||||
BGFX_PROFILER_SCOPE("bgfx/flip", kColorSubmit);
|
||||
flip();
|
||||
@@ -2825,6 +2825,8 @@ namespace bgfx
|
||||
flip();
|
||||
}
|
||||
}
|
||||
|
||||
m_flushPrevFrame = m_render->m_flush;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user