Skip to content

Commit

Permalink
Merge pull request #766 from LoboEire/master
Browse files Browse the repository at this point in the history
Bugfix: PNG textures/flats were not tiling
  • Loading branch information
dashodanger authored Dec 23, 2024
2 parents 31ed77f + c546f85 commit b8e0f7d
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 b8e0f7d

Please sign in to comment.