Skip to content

Commit

Permalink
Fix: Fix Uniform buffer doing too many iterations when updating rende…
Browse files Browse the repository at this point in the history
…rer uniforms (#3372)
  • Loading branch information
LittleCodingFox authored Nov 11, 2024
1 parent cc789e8 commit 4bc6529
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/bgfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1313,10 +1313,8 @@ namespace bgfx

m_draw.clear(_flags);
m_bind.clear(_flags);
if (_flags & BGFX_DISCARD_STATE)
{
m_uniformBegin = m_uniformEnd;
}

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 4bc6529

Please sign in to comment.