mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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:
parent
7ed9f36769
commit
f32aff29fa
@ -155,7 +155,7 @@ namespace dxvk {
|
|||||||
subresources.layerCount = image->info().numLayers;
|
subresources.layerCount = image->info().numLayers;
|
||||||
|
|
||||||
if (formatInfo->flags.test(DxvkFormatFlag::BlockCompressed)) {
|
if (formatInfo->flags.test(DxvkFormatFlag::BlockCompressed)) {
|
||||||
m_context->initImage(image, subresources);
|
m_context->clearCompressedColorImage(image, subresources);
|
||||||
} else {
|
} else {
|
||||||
if (subresources.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT) {
|
if (subresources.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT) {
|
||||||
VkClearColorValue value = { };
|
VkClearColorValue value = { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user