1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-13 19:29:14 +01:00

[d3d11] Fix incorrect layer count for some non-PoT 3D RTVs

Otherwise, we may end up with zero layers. Fixes #1756.
This commit is contained in:
Philip Rebohle 2020-09-04 23:04:06 +02:00
parent 41a49a9c14
commit 7bf02a1925
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -383,7 +383,7 @@ namespace dxvk {
}
format = resourceDesc.Format;
numLayers = resourceDesc.Depth >> pDesc->Texture3D.MipSlice;
numLayers = std::max(resourceDesc.Depth >> pDesc->Texture3D.MipSlice, 1u);
} break;
default: