Skip to content

Commit 85a6bc1

Browse files
committed
Fix some Undying ui textures with incorrect alpha channel
1 parent 77177be commit 85a6bc1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Src/D3D9RenderDevice.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2675,6 +2675,14 @@ void UD3D9RenderDevice::DrawTile(FSceneNode* Frame, FTextureInfo& Info, FLOAT X,
26752675
//Set default texture state
26762676
SetDefaultTextureState();
26772677

2678+
#if UNDYING
2679+
if (Info.Format != TEXF_RGBA8) {
2680+
if (Info.Palette && Info.Palette[0x80].A != 0xFF && !(PolyFlags & PF_Translucent)) {
2681+
PolyFlags |= PF_Highlighted;
2682+
}
2683+
}
2684+
#endif
2685+
26782686
SetBlend(PolyFlags, true);
26792687
SetTextureNoPanBias(0, Info, PolyFlags);
26802688

0 commit comments

Comments
 (0)