Skip to content

Commit 1c17bc5

Browse files
update bgfx + submit discard (#210)
1 parent e2a3940 commit 1c17bc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dependencies/bgfx.cmake

Plugins/NativeEngine/Source/NativeEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ namespace Babylon
13361336
// TODO : find why we need to discard state on Android
13371337
bgfx::submit(m_frameBufferManager.GetBound().ViewId, m_currentProgram->Program, 0, false);
13381338
#else
1339-
bgfx::submit(m_frameBufferManager.GetBound().ViewId, m_currentProgram->Program, 0, true);
1339+
bgfx::submit(m_frameBufferManager.GetBound().ViewId, m_currentProgram->Program, 0, BGFX_DISCARD_INSTANCE_DATA | BGFX_DISCARD_STATE | BGFX_DISCARD_TRANSFORM);
13401340
#endif
13411341
}
13421342

0 commit comments

Comments
 (0)