Software: Fix zfreeze with CullMode::All

This commit is contained in:
Pokechu22
2021-11-29 17:51:02 -08:00
parent 164e0f742d
commit 59f299d5d6
7 changed files with 78 additions and 41 deletions

View File

@ -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();