Skip to content

Commit 4bc6529

Browse files
Fix: Fix Uniform buffer doing too many iterations when updating renderer uniforms (#3372)
1 parent cc789e8 commit 4bc6529

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/bgfx.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,10 +1313,8 @@ namespace bgfx
13131313

13141314
m_draw.clear(_flags);
13151315
m_bind.clear(_flags);
1316-
if (_flags & BGFX_DISCARD_STATE)
1317-
{
1318-
m_uniformBegin = m_uniformEnd;
1319-
}
1316+
1317+
m_uniformBegin = m_uniformEnd;
13201318
}
13211319

13221320
void EncoderImpl::dispatch(ViewId _id, ProgramHandle _handle, uint32_t _numX, uint32_t _numY, uint32_t _numZ, uint8_t _flags)

0 commit comments

Comments
 (0)