1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-27 04:54:15 +01:00

[d3d11] Clear compressed images if they do not get initialized

This probably makes Quantum Break run even worse, but I don't really
care at this point. Fixes #744.
This commit is contained in:
Philip Rebohle 2018-11-07 18:41:07 +01:00
parent 7ed9f36769
commit f32aff29fa
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -155,7 +155,7 @@ namespace dxvk {
subresources.layerCount = image->info().numLayers;
if (formatInfo->flags.test(DxvkFormatFlag::BlockCompressed)) {
m_context->initImage(image, subresources);
m_context->clearCompressedColorImage(image, subresources);
} else {
if (subresources.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT) {
VkClearColorValue value = { };