Skip to content
Permalink
Browse files
Readd TGA to the list of valid texture formats. (#11598)
  • Loading branch information
rollerozxa committed Sep 15, 2021
1 parent 719a12e commit 6fedee16f098549ffaee188b02b777239513abc3
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/client/tile.cpp
  2. +1 −1 src/server.cpp
@@ -81,7 +81,7 @@ static bool replace_ext(std::string &path, const char *ext)
std::string getImagePath(std::string path)
{
// A NULL-ended list of possible image extensions
const char *extensions[] = { "png", "jpg", "bmp", NULL };
const char *extensions[] = { "png", "jpg", "bmp", "tga", NULL };
// If there is no extension, assume PNG
if (removeStringEnd(path, extensions).empty())
path = path + ".png";
@@ -2453,7 +2453,7 @@ bool Server::addMediaFile(const std::string &filename,
}
// If name is not in a supported format, ignore it
const char *supported_ext[] = {
".png", ".jpg", ".bmp",
".png", ".jpg", ".bmp", ".tga",
".ogg",
".x", ".b3d", ".obj",
// Custom translation file format

0 comments on commit 6fedee1

Please sign in to comment.