From 601aa54139bce1bb51aa781db93d58205ce99e10 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 18 Jan 2018 08:50:14 +0100 Subject: [PATCH] [dxvk] End render pass before a staged image upload Fixes Heaven. Also removes an unnecessary error check --- src/dxvk/dxvk_context.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index e61089a7c..40281affe 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -672,10 +672,7 @@ namespace dxvk { const void* data, VkDeviceSize pitchPerRow, VkDeviceSize pitchPerLayer) { - if (subresources.layerCount == 0) { - Logger::warn("DxvkContext::updateImage: Layer count is zero"); - return; - } + this->renderPassEnd(); // Upload data through a staging buffer. Special care needs to // be taken when dealing with compressed image formats: Rather