Skip to content

Commit

Permalink
[Vk] do not repeat transition to OnStorage that is already done in de…
Browse files Browse the repository at this point in the history
…stroySwapchain()
  • Loading branch information
eugenegff committed Feb 13, 2025
1 parent 4647319 commit b2e7006
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,15 +341,6 @@ namespace Ogre
destroySwapchain();
destroySurface();

// Depth & Stencil buffer are normal textures; thus they need to be reeinitialized normally
if( mDepthBuffer && mDepthBuffer->getResidencyStatus() != GpuResidency::OnStorage )
mDepthBuffer->_transitionTo( GpuResidency::OnStorage, (uint8 *)0 );
if( mStencilBuffer && mStencilBuffer != mDepthBuffer &&
mStencilBuffer->getResidencyStatus() != GpuResidency::OnStorage )
{
mStencilBuffer->_transitionTo( GpuResidency::OnStorage, (uint8 *)0 );
}

if( mNativeWindow != nativeWindow )
{
if( mNativeWindow )
Expand Down

0 comments on commit b2e7006

Please sign in to comment.