Fixes address_reg initialization.

This commit is contained in:
Erik Abair 2022-06-19 14:50:17 -07:00
parent 21014eb5f2
commit 5006dc4919

View File

@ -7,8 +7,8 @@ Nv2aVshExecutionState nv2a_vsh_emu_initialize_full_execution_state(
memset(state, 0, sizeof(*state));
Nv2aVshExecutionState ret = {
(float *)state->input_regs, (float *)state->output_regs,
(float *)state->temp_regs, (float *)state->context_regs};
(float *)&state->address_reg;
(float *)state->temp_regs, (float *)state->context_regs,
(float *)&state->address_reg};
return ret;
}
@ -20,7 +20,7 @@ Nv2aVshExecutionState nv2a_vsh_emu_initialize_xss_execution_state(
state->context_dirty = context_dirty;
Nv2aVshExecutionState ret = {
(float *)state->input_regs, (float *)state->output_regs,
(float *)state->temp_regs, (float *)state->context_regs};
(float *)&state->address_reg;
(float *)state->temp_regs, (float *)state->context_regs,
(float *)&state->address_reg};
return ret;
}