diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-11-29 17:51:02 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-04-08 20:05:32 -0700 |
| commit | 59f299d5d6cabddacf8e7d80f6f53987e4767c22 (patch) | |
| tree | 18201f3884d4995e19e351d18104eceeae234040 /Source/Core/VideoBackends/Software/SWVertexLoader.cpp | |
| parent | 164e0f742d544f369f7a45e20815f22056a7d866 (diff) | |
Software: Fix zfreeze with CullMode::All
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWVertexLoader.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWVertexLoader.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Software/SWVertexLoader.cpp b/Source/Core/VideoBackends/Software/SWVertexLoader.cpp index af99e5ba85..287fcf4a4b 100644 --- a/Source/Core/VideoBackends/Software/SWVertexLoader.cpp +++ b/Source/Core/VideoBackends/Software/SWVertexLoader.cpp @@ -32,6 +32,13 @@ SWVertexLoader::SWVertexLoader() = default; SWVertexLoader::~SWVertexLoader() = default; +DataReader SWVertexLoader::PrepareForAdditionalData(OpcodeDecoder::Primitive primitive, u32 count, + u32 stride, bool cullall) +{ + // The software renderer needs cullall to be false for zfreeze to work + return VertexManagerBase::PrepareForAdditionalData(primitive, count, stride, false); +} + void SWVertexLoader::DrawCurrentBatch(u32 base_index, u32 num_indices, u32 base_vertex) { DebugUtil::OnObjectBegin(); |
