From 07dbc5a80dd56b3d1726d0261a9bd17c9297ccfc Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 22 Nov 2020 13:46:19 +1000 Subject: [PATCH] GPU/HW: Draw opaque before semitransparent for reverse subtract Fixes missing shadows in Suikoden II. --- src/core/gpu_hw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index b14c09427..3fd97a530 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -1039,8 +1039,8 @@ void GPU_HW::FlushRender() if (m_batch.NeedsTwoPassRendering()) { 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::OnlyTransparent, m_batch_base_vertex, vertex_count); } else {