mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Remove BMP image support (#15434)
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
This commit is contained in:
parent
46f0baff09
commit
11837d4623
11 changed files with 6 additions and 713 deletions
|
@ -22,10 +22,8 @@ void clearTextureNameCache()
|
|||
// If failed, return "".
|
||||
std::string getImagePath(std::string_view path)
|
||||
{
|
||||
// A NULL-ended list of possible image extensions
|
||||
// (In newer C++ versions a fixed size array and ranges::subrange could be used
|
||||
// or just modernise removeStringEnd.)
|
||||
static const char *extensions[] = {".png", ".jpg", ".bmp", ".tga", nullptr};
|
||||
// possible image extensions
|
||||
static const char *extensions[] = {".png", ".jpg", ".tga", nullptr};
|
||||
|
||||
// Remove present extension
|
||||
std::string_view stripped_path = removeStringEnd(path, extensions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue