Explorar el Código

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

BearishSun hace 8 años
padre
commit
5606329560
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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;
 		mDescriptorSetsBindState = DescriptorSetBindFlag::Graphics | DescriptorSetBindFlag::Compute;
 		mQueuedLayoutTransitions.clear();
 		mQueuedLayoutTransitions.clear();
 		mBoundParams = nullptr;
 		mBoundParams = nullptr;
-		mBoundParams = false;
 		mSwapChains.clear();
 		mSwapChains.clear();
 	}
 	}
 
 
@@ -886,7 +885,8 @@ namespace bs { namespace ct
 			mRenderTargetLoadMask = loadMask;
 			mRenderTargetLoadMask = loadMask;
 		}
 		}
 
 
-		setGpuParams(nullptr);
+		// Re-set the params as they will need to be re-bound
+		setGpuParams(mBoundParams);
 
 
 		if (mFramebuffer != nullptr)
 		if (mFramebuffer != nullptr)
 			registerResource(mFramebuffer, loadMask, readOnlyFlags);
 			registerResource(mFramebuffer, loadMask, readOnlyFlags);