[D3D12] Fix signed-only texture descriptor creation

This commit is contained in:
Triang3l 2021-02-13 23:22:03 +03:00 committed by GitHub
parent a6954aced3
commit 87442b106c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1248,7 +1248,7 @@ void TextureCache::RequestTextures(uint32_t used_texture_mask) {
signed_key.signed_separate = 1;
binding.texture_signed = FindOrCreateTexture(signed_key);
binding.descriptor_index_signed =
binding.texture
binding.texture_signed
? FindOrCreateTextureDescriptor(*binding.texture_signed, true,
binding.host_swizzle)
: UINT32_MAX;