From 3efec8960c37827d183dc02595d1e2d423a3a13e Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 14 May 2019 21:19:56 +0200 Subject: [PATCH] [dxvk] Pass clear value to clearRenderTarget by value --- src/dxvk/dxvk_context.cpp | 2 +- src/dxvk/dxvk_context.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index e4d5c656..e0b0a353 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -589,7 +589,7 @@ namespace dxvk { void DxvkContext::clearRenderTarget( const Rc& imageView, VkImageAspectFlags clearAspects, - const VkClearValue& clearValue) { + VkClearValue clearValue) { this->updateFramebuffer(); // Prepare attachment ops diff --git a/src/dxvk/dxvk_context.h b/src/dxvk/dxvk_context.h index 286c02a3..9daf2b4c 100644 --- a/src/dxvk/dxvk_context.h +++ b/src/dxvk/dxvk_context.h @@ -289,7 +289,7 @@ namespace dxvk { void clearRenderTarget( const Rc& imageView, VkImageAspectFlags clearAspects, - const VkClearValue& clearValue); + VkClearValue clearValue); /** * \brief Clears an image view