[DXBC] Fix texture binding reference use-after-grow

This commit is contained in:
Triang3l 2020-11-06 13:00:22 +03:00
parent ae3b68c7b6
commit 6ac4d3e0c9
1 changed files with 2 additions and 2 deletions

View File

@ -1730,10 +1730,10 @@ void DxbcShaderTranslator::ProcessTextureFetchInstruction(
}
uint32_t texture_binding_index_unsigned =
FindOrAddTextureBinding(tfetch_index, srv_dimension, false);
const TextureBinding& texture_binding_unsigned =
texture_bindings_[texture_binding_index_unsigned];
uint32_t texture_binding_index_signed =
FindOrAddTextureBinding(tfetch_index, srv_dimension, true);
const TextureBinding& texture_binding_unsigned =
texture_bindings_[texture_binding_index_unsigned];
const TextureBinding& texture_binding_signed =
texture_bindings_[texture_binding_index_signed];
DxbcSrc srv_unsigned(DxbcSrc::LF(0.0f)), srv_signed(DxbcSrc::LF(0.0f));