From a27740a41fa91d733e669a2978edc01d7fc628e0 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Mon, 17 Sep 2018 08:08:45 +0300 Subject: [PATCH] [D3D12] Set binding texture to null if the key is not valid --- src/xenia/gpu/d3d12/texture_cache.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenia/gpu/d3d12/texture_cache.cc b/src/xenia/gpu/d3d12/texture_cache.cc index 88acccde4..75ba0f379 100644 --- a/src/xenia/gpu/d3d12/texture_cache.cc +++ b/src/xenia/gpu/d3d12/texture_cache.cc @@ -355,6 +355,7 @@ void TextureCache::RequestTextures(uint32_t used_vertex_texture_mask, binding.swizzle); texture_keys_in_sync_ |= index_bit; if (binding.key.IsInvalid()) { + binding.texture = nullptr; continue; } bool load = force_load;