Browse Source

WIP: Getting Vulkan up to date
- Don't unbind GpuParams when render target changes (to be consistent with DirectX/OpenGL behavior)

BearishSun 8 years ago
parent
commit
5606329560
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/BansheeVulkanRenderAPI/BsVulkanCommandBuffer.cpp

+ 2 - 2
Source/BansheeVulkanRenderAPI/BsVulkanCommandBuffer.cpp

@@ -711,7 +711,6 @@ namespace bs { namespace ct
 		mDescriptorSetsBindState = DescriptorSetBindFlag::Graphics | DescriptorSetBindFlag::Compute;
 		mQueuedLayoutTransitions.clear();
 		mBoundParams = nullptr;
-		mBoundParams = false;
 		mSwapChains.clear();
 	}
 
@@ -886,7 +885,8 @@ namespace bs { namespace ct
 			mRenderTargetLoadMask = loadMask;
 		}
 
-		setGpuParams(nullptr);
+		// Re-set the params as they will need to be re-bound
+		setGpuParams(mBoundParams);
 
 		if (mFramebuffer != nullptr)
 			registerResource(mFramebuffer, loadMask, readOnlyFlags);