mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-13 22:22:05 +00:00
Always update current binding sets if binding layout has changed
This commit is contained in:
parent
17d982e664
commit
f7d2ae5b9b
2 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,7 @@ void fhImmediateMode::End()
|
|||
|
||||
for( int i = 0; i < layouts->Num(); i++ )
|
||||
{
|
||||
if( !tr.backend.currentBindingSets[i] || *tr.backend.currentBindingSets[i]->getDesc() != tr.backend.pendingBindingSetDescs[bindingLayoutType][i] )
|
||||
if( !tr.backend.currentBindingSets[i] || *tr.backend.currentBindingSets[i]->getDesc() != tr.backend.pendingBindingSetDescs[bindingLayoutType][i] || bindingLayoutType != tr.backend.prevBindingLayoutType )
|
||||
{
|
||||
tr.backend.currentBindingSets[i] = tr.backend.bindingCache.GetOrCreateBindingSet( tr.backend.pendingBindingSetDescs[bindingLayoutType][i], ( *layouts )[i] );
|
||||
}
|
||||
|
|
|
@ -448,7 +448,7 @@ void idRenderBackend::DrawElementsWithCounters( const drawSurf_t* surf, bool sha
|
|||
|
||||
for( int i = 0; i < layouts->Num(); i++ )
|
||||
{
|
||||
if( !currentBindingSets[i] || *currentBindingSets[i]->getDesc() != pendingBindingSetDescs[bindingLayoutType][i] )
|
||||
if( !currentBindingSets[i] || *currentBindingSets[i]->getDesc() != pendingBindingSetDescs[bindingLayoutType][i] || bindingLayoutType != prevBindingLayoutType )
|
||||
{
|
||||
currentBindingSets[i] = bindingCache.GetOrCreateBindingSet( pendingBindingSetDescs[bindingLayoutType][i], ( *layouts )[i] );
|
||||
changeState = true;
|
||||
|
|
Loading…
Reference in a new issue