mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Always write the constant buffer -> BAD but works
This commit is contained in:
parent
a7f83bf631
commit
74c8a9f94e
1 changed files with 3 additions and 1 deletions
|
@ -309,7 +309,9 @@ void idRenderProgManager::ZeroUniforms()
|
|||
// Only updates the constant buffer if it was updated at all
|
||||
bool idRenderProgManager::CommitConstantBuffer( nvrhi::ICommandList* commandList )
|
||||
{
|
||||
if( uniformsChanged )
|
||||
// RB: It would be better to NUM_BINDING_LAYOUTS uniformsChanged entrys but we don't know the current binding layout type when we set the uniforms.
|
||||
// The vkDoom3 backend even didn't bother with this and always fired the uniforms for each draw call.
|
||||
//if( uniformsChanged )
|
||||
{
|
||||
commandList->writeBuffer( constantBuffer[BindingLayoutType()], uniforms.Ptr(), uniforms.Allocated() );
|
||||
|
||||
|
|
Loading…
Reference in a new issue