mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 14:25:38 +00:00
GPU/HW: Draw opaque before semitransparent for reverse subtract
Fixes missing shadows in Suikoden II.
This commit is contained in:
parent
e06f85a328
commit
07dbc5a80d
|
@ -1039,8 +1039,8 @@ void GPU_HW::FlushRender()
|
||||||
if (m_batch.NeedsTwoPassRendering())
|
if (m_batch.NeedsTwoPassRendering())
|
||||||
{
|
{
|
||||||
m_renderer_stats.num_batches += 2;
|
m_renderer_stats.num_batches += 2;
|
||||||
DrawBatchVertices(BatchRenderMode::OnlyTransparent, m_batch_base_vertex, vertex_count);
|
|
||||||
DrawBatchVertices(BatchRenderMode::OnlyOpaque, m_batch_base_vertex, vertex_count);
|
DrawBatchVertices(BatchRenderMode::OnlyOpaque, m_batch_base_vertex, vertex_count);
|
||||||
|
DrawBatchVertices(BatchRenderMode::OnlyTransparent, m_batch_base_vertex, vertex_count);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue