[DXBC] Fix texture binding reference use-after-grow
This commit is contained in:
parent
ae3b68c7b6
commit
6ac4d3e0c9
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue