From 45c0b29470eca89ddf1169f3a432fc42b99f9917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Fri, 2 Apr 2021 16:46:42 -0700 Subject: [PATCH] Cleanup. --- src/bgfx_p.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 38e67bc34..62de81809 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -1643,9 +1643,10 @@ namespace bgfx m_startIndex = 0; m_numIndices = UINT32_MAX; m_indexBuffer.idx = kInvalidHandle; - m_submitFlags = 0; - } else { - // if index buffer retained track its size in submit flags. + m_submitFlags = 0; + } + else + { m_submitFlags = isIndex16() ? 0 : BGFX_SUBMIT_INTERNAL_INDEX32; }