Skip to content

Commit

Permalink
[Vk] call resetAllBindings() inside createVkResources(). Milestone - …
Browse files Browse the repository at this point in the history
…PbsMaterial sample survives forced device recreation on Ctrl+F5
  • Loading branch information
eugenegff committed Dec 4, 2024
1 parent 25a1567 commit b56819a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ namespace Ogre
VkResult result = vkCreateSampler( mDevice->mDevice, &samplerDescriptor, 0, &mDummySampler );
checkVkResult( result, "vkCreateSampler" );
}

resetAllBindings();
}
//-------------------------------------------------------------------------
void VulkanRenderSystem::destroyVkResources0()
Expand Down Expand Up @@ -1241,8 +1243,6 @@ namespace Ogre

createVkResources();

resetAllBindings();

String workaroundsStr;
Workarounds::dump( workaroundsStr );
if( !workaroundsStr.empty() )
Expand Down

0 comments on commit b56819a

Please sign in to comment.