From 186b5fa8ee50227a141929e463e031668c233d4d Mon Sep 17 00:00:00 2001 From: jackchentwkh Date: Sat, 25 Jun 2022 16:49:04 +0800 Subject: [PATCH] adopt api changes of nv2a_vsh_emu_execute_track_context_writes(). using pg->vsh_constants_dirty[] again. --- src/core/hle/D3D8/Direct3D9/Direct3D9.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp b/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp index 12a0dd84b..24526071d 100644 --- a/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp +++ b/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp @@ -8709,13 +8709,9 @@ xbox::void_xt WINAPI xbox::EMUPATCH(D3DDevice_RunVertexStateShader) &state_linkage, (float*)pg->vsh_constants); memcpy(state_linkage.input_regs, vertex_state_shader_v0, sizeof(vertex_state_shader_v0)); - nv2a_vsh_emu_execute(&state, &program); + nv2a_vsh_emu_execute_track_context_writes(&state, &program, pg->vsh_constants_dirty); - nv2a_vsh_program_destroy(&program); - //mark all vertex shader constants dirty so later they will be updated by vertex shader processor code. - for(int vshcnt=0;vshcnt< NV2A_VERTEXSHADER_CONSTANTS;vshcnt++) - pg->vsh_constants_dirty[vshcnt] = TRUE; - + nv2a_vsh_program_destroy(&program); } // ******************************************************************