1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 02:52:10 +01:00

[dxvk] End render pass before a staged image upload

Fixes Heaven. Also removes an unnecessary error check
This commit is contained in:
Philip Rebohle 2018-01-18 08:50:14 +01:00
parent af6bc1e7e2
commit 601aa54139
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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