From 49c6a55f2400e45220642252a68d18cb5e03e167 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Thu, 6 Feb 2020 11:39:05 +0100 Subject: [PATCH] vulkan oit: pass native blend function values to shader, not vulkan ones Fixes missing texture in Plasma Sword start screen --- core/rend/vulkan/oit/oit_drawer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/rend/vulkan/oit/oit_drawer.cpp b/core/rend/vulkan/oit/oit_drawer.cpp index 317c9178b..871458ff5 100644 --- a/core/rend/vulkan/oit/oit_drawer.cpp +++ b/core/rend/vulkan/oit/oit_drawer.cpp @@ -50,7 +50,7 @@ void OITDrawer::DrawPoly(const vk::CommandBuffer& cmdBuffer, u32 listType, bool (float)scissorRect.offset.x + (float)scissorRect.extent.width, (float)scissorRect.offset.y + (float)scissorRect.extent.height }, - { getBlendFactor(poly.tsp.SrcInstr, true), getBlendFactor(poly.tsp.DstInstr, false), 0, 0 }, + { poly.tsp.SrcInstr, poly.tsp.DstInstr, 0, 0 }, trilinearAlpha, (int)(&poly - (listType == ListType_Opaque ? pvrrc.global_param_op.head() : listType == ListType_Punch_Through ? pvrrc.global_param_pt.head() @@ -58,7 +58,7 @@ void OITDrawer::DrawPoly(const vk::CommandBuffer& cmdBuffer, u32 listType, bool }; if (twoVolumes) { - pushConstants.blend_mode1 = { getBlendFactor(poly.tsp1.SrcInstr, true), getBlendFactor(poly.tsp1.DstInstr, false), 0, 0 }; + pushConstants.blend_mode1 = { poly.tsp1.SrcInstr, poly.tsp1.DstInstr, 0, 0 }; pushConstants.shading_instr0 = poly.tsp.ShadInstr; pushConstants.shading_instr1 = poly.tsp1.ShadInstr; pushConstants.fog_control0 = poly.tsp.FogCtrl;