diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-12-28 15:38:46 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-12-28 15:52:29 +0100 |
| commit | 50625728e089c8868eb919244d4e6eafa4f4cf79 (patch) | |
| tree | bc88f46cfe671ed8ed25cfa24fe83a9c74b83e3e /Source/Core/VideoCommon/BPStructs.cpp | |
| parent | 0900e68986a4fa2254fb3c459f73af4815979e45 (diff) | |
VideoCommon: De-globalize VertexShaderManager class.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index e7c2c640ff..376249fab9 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -54,7 +54,8 @@ void BPInit() bpmem.bpMask = 0xFFFFFF; } -static void BPWritten(PixelShaderManager& pixel_shader_manager, const BPCmd& bp, +static void BPWritten(PixelShaderManager& pixel_shader_manager, + VertexShaderManager& vertex_shader_manager, const BPCmd& bp, int cycles_into_future) { /* @@ -136,7 +137,7 @@ static void BPWritten(PixelShaderManager& pixel_shader_manager, const BPCmd& bp, case BPMEM_SCISSORTL: // Scissor Rectable Top, Left case BPMEM_SCISSORBR: // Scissor Rectable Bottom, Right case BPMEM_SCISSOROFFSET: // Scissor Offset - VertexShaderManager::SetViewportChanged(); + vertex_shader_manager.SetViewportChanged(); GeometryShaderManager::SetViewportChanged(); return; case BPMEM_LINEPTWIDTH: // Line Width @@ -762,7 +763,8 @@ void LoadBPReg(u8 reg, u32 value, int cycles_into_future) if (reg != BPMEM_BP_MASK) bpmem.bpMask = 0xFFFFFF; - BPWritten(system.GetPixelShaderManager(), bp, cycles_into_future); + BPWritten(system.GetPixelShaderManager(), system.GetVertexShaderManager(), bp, + cycles_into_future); } void LoadBPRegPreprocess(u8 reg, u32 value, int cycles_into_future) |
