GPU/HW: Disable depth buffering on transparent polygons

These are the most likely to be coplanar and cause issues.
This commit is contained in:
Connor McLaughlin 2021-03-30 01:40:04 +10:00
parent a6617e6297
commit df5de7730c

View file

@ -576,8 +576,10 @@ void GPU_HW::LoadVertices()
}
else if (g_settings.gpu_pgxp_depth_buffer)
{
SetBatchDepthBuffer(true);
CheckForDepthClear(vertices.data(), num_vertices);
const bool use_depth = (m_batch.transparency_mode == GPUTransparencyMode::Disabled);
SetBatchDepthBuffer(use_depth);
if (use_depth)
CheckForDepthClear(vertices.data(), num_vertices);
}
}