From 27e4b72b4f329e131495c0023953df386c444149 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 15 Mar 2024 18:50:13 +0100 Subject: [PATCH] Fix blend issue with tiles --- D3D11Drv/UD3D11RenderDevice.cpp | 3 --- D3D12Drv/UD3D12RenderDevice.cpp | 3 --- VulkanDrv/UVulkanRenderDevice.cpp | 3 --- 3 files changed, 9 deletions(-) diff --git a/D3D11Drv/UD3D11RenderDevice.cpp b/D3D11Drv/UD3D11RenderDevice.cpp index 46cdf58..fa9e1e0 100644 --- a/D3D11Drv/UD3D11RenderDevice.cpp +++ b/D3D11Drv/UD3D11RenderDevice.cpp @@ -2116,9 +2116,6 @@ void UD3D11RenderDevice::DrawTile(FSceneNode* Frame, FTextureInfo& Info, FLOAT X PolyFlags = ApplyPrecedenceRules(PolyFlags); - if ((PolyFlags & (PF_Modulated)) == (PF_Modulated) && Info.Format == TEXF_P8) - PolyFlags = PF_Modulated; - CachedTexture* tex = Textures->GetTexture(&Info, !!(PolyFlags & PF_Masked)); float UMult = tex ? GetUMult(Info) : 0.0f; float VMult = tex ? GetVMult(Info) : 0.0f; diff --git a/D3D12Drv/UD3D12RenderDevice.cpp b/D3D12Drv/UD3D12RenderDevice.cpp index 9a4ee48..bc0b465 100644 --- a/D3D12Drv/UD3D12RenderDevice.cpp +++ b/D3D12Drv/UD3D12RenderDevice.cpp @@ -2620,9 +2620,6 @@ void UD3D12RenderDevice::DrawTile(FSceneNode* Frame, FTextureInfo& Info, FLOAT X PolyFlags = ApplyPrecedenceRules(PolyFlags); - if ((PolyFlags & (PF_Modulated)) == (PF_Modulated) && Info.Format == TEXF_P8) - PolyFlags = PF_Modulated; - CachedTexture* tex = Textures->GetTexture(&Info, !!(PolyFlags & PF_Masked)); SetPipeline(PolyFlags); diff --git a/VulkanDrv/UVulkanRenderDevice.cpp b/VulkanDrv/UVulkanRenderDevice.cpp index a6b20fa..1652a85 100644 --- a/VulkanDrv/UVulkanRenderDevice.cpp +++ b/VulkanDrv/UVulkanRenderDevice.cpp @@ -1143,9 +1143,6 @@ void UVulkanRenderDevice::DrawTile(FSceneNode* Frame, FTextureInfo& Info, FLOAT PolyFlags = ApplyPrecedenceRules(PolyFlags); - if ((PolyFlags & (PF_Modulated)) == (PF_Modulated) && Info.Format == TEXF_P8) - PolyFlags = PF_Modulated; - CachedTexture* tex = Textures->GetTexture(&Info, !!(PolyFlags & PF_Masked)); float UMult = tex ? GetUMult(Info) : 0.0f; float VMult = tex ? GetVMult(Info) : 0.0f;