[D3D12] Set binding texture to null if the key is not valid
This commit is contained in:
parent
34fef0911c
commit
a27740a41f
|
@ -355,6 +355,7 @@ void TextureCache::RequestTextures(uint32_t used_vertex_texture_mask,
|
||||||
binding.swizzle);
|
binding.swizzle);
|
||||||
texture_keys_in_sync_ |= index_bit;
|
texture_keys_in_sync_ |= index_bit;
|
||||||
if (binding.key.IsInvalid()) {
|
if (binding.key.IsInvalid()) {
|
||||||
|
binding.texture = nullptr;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
bool load = force_load;
|
bool load = force_load;
|
||||||
|
|
Loading…
Reference in New Issue