mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-25 13:38:34 -06:00
Move stb_image reader first in reader order
Seems better to let it handle the common file types instead of FreeImage on linux
This commit is contained in:
committed by
gsfcospaceW1
parent
2751ee327c
commit
ef877db08c
@@ -342,6 +342,11 @@ void RenderEngine::initialize() {
|
||||
LINFO(fmt::format("Setting renderer from string: {}", renderingMethod));
|
||||
setRendererFromString(renderingMethod);
|
||||
|
||||
#ifdef GHOUL_USE_STB_IMAGE
|
||||
ghoul::io::TextureReader::ref().addReader(
|
||||
std::make_shared<ghoul::io::TextureReaderSTB>()
|
||||
);
|
||||
#endif // GHOUL_USE_STB_IMAGE
|
||||
#ifdef GHOUL_USE_DEVIL
|
||||
ghoul::io::TextureReader::ref().addReader(
|
||||
std::make_unique<ghoul::io::TextureReaderDevIL>()
|
||||
@@ -360,11 +365,6 @@ void RenderEngine::initialize() {
|
||||
std::make_unique<ghoul::io::TextureWriterSOIL>()
|
||||
);
|
||||
#endif // GHOUL_USE_SOIL
|
||||
#ifdef GHOUL_USE_STB_IMAGE
|
||||
ghoul::io::TextureReader::ref().addReader(
|
||||
std::make_unique<ghoul::io::TextureReaderSTB>()
|
||||
);
|
||||
#endif // GHOUL_USE_STB_IMAGE
|
||||
|
||||
ghoul::io::TextureReader::ref().addReader(
|
||||
std::make_unique<ghoul::io::TextureReaderCMAP>()
|
||||
|
||||
Reference in New Issue
Block a user