Skip to content

Commit

Permalink
Fix blend issue with tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Mar 15, 2024
1 parent ed1f473 commit 27e4b72
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions D3D11Drv/UD3D11RenderDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions D3D12Drv/UD3D12RenderDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 0 additions & 3 deletions VulkanDrv/UVulkanRenderDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 27e4b72

Please sign in to comment.