Skip to content

Commit

Permalink
Bugfix: PNG textures/flats were not tiling
Browse files Browse the repository at this point in the history
  • Loading branch information
LoboEire committed Dec 23, 2024
1 parent 31ed77f commit c546f85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source_files/edge/r_doomtex.cc
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ static ImageData *ReadPatchAsEpiBlock(Image *rim)
if (!img)
FatalError("Error loading image in lump: %s\n", packfile_name ? packfile_name : GetLumpNameFromIndex(lump));

// Try and manually tile, or at least fill in the black gaps ]
img->FillMarginX(rim->actual_width_);
img->FillMarginY(rim->actual_height_);

return img;
}

Expand Down

0 comments on commit c546f85

Please sign in to comment.