1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[d3d11] Fix layer count for 3D RTVs with non-zero base mip level

We have to take the mip level into account as well, or otherwise
we may create a view with more layers than the selected mip level has.
This commit is contained in:
Philip Rebohle 2018-09-04 07:39:46 +02:00
parent 2533b9f4ed
commit 57e5b05f32
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -268,7 +268,7 @@ namespace dxvk {
}
format = resourceDesc.Format;
numLayers = resourceDesc.Depth;
numLayers = resourceDesc.Depth >> pDesc->Texture3D.MipSlice;
} break;
default: