[D3D12] Set binding texture to null if the key is not valid

This commit is contained in:
Triang3l 2018-09-17 08:08:45 +03:00
parent 34fef0911c
commit a27740a41f
1 changed files with 1 additions and 0 deletions

View File

@ -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;