Skip to content

Commit 673ff8d

Browse files
committed
grf: Support the "color 0 transparent" flag of the GRF format
If this flag is set in the GRF file it will force color 0 to be transparent even if the caller of NE_MaterialTexLoadGRF() hasn't specified it as transparent.
1 parent 7d739ca commit 673ff8d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

source/NETexture.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ int NE_MaterialTexLoadGRF(NE_Material *tex, NE_Palette *pal,
203203
goto cleanup;
204204
}
205205

206+
if (header.flags & GRF_FLAG_COLOR0_TRANSPARENT)
207+
flags |= GL_TEXTURE_COLOR0_TRANSPARENT;
208+
206209
if (gfxDst == NULL)
207210
{
208211
NE_DebugPrint("No graphics found in GRF file");

0 commit comments

Comments
 (0)