From 4bc652939ff400e424e17185d23b229a37d269e1 Mon Sep 17 00:00:00 2001 From: Nuno Silva Date: Mon, 11 Nov 2024 04:30:45 +0000 Subject: [PATCH] Fix: Fix Uniform buffer doing too many iterations when updating renderer uniforms (#3372) --- src/bgfx.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 00e90c17b..600cf8429 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -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)