Skip to content

Commit

Permalink
Revert "Fix: Fix Uniform buffer doing too many iterations when updati…
Browse files Browse the repository at this point in the history
…ng rende…"

This reverts commit 4bc6529.
  • Loading branch information
bkaradzic authored Dec 31, 2024
1 parent 0411ff7 commit 12e5f03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bgfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1325,8 +1325,10 @@ namespace bgfx

m_draw.clear(_flags);
m_bind.clear(_flags);

m_uniformBegin = m_uniformEnd;
if (_flags & BGFX_DISCARD_STATE)
{
m_uniformBegin = m_uniformEnd;
}
}

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

0 comments on commit 12e5f03

Please sign in to comment.