mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-27 06:19:51 -05:00
Adapt to changes in Ghoul that made absPath return a std::filesystem::path instead of a std::string
This commit is contained in:
@@ -101,7 +101,7 @@ RenderablePlaneImageLocal::RenderablePlaneImageLocal(const ghoul::Dictionary& di
|
||||
|
||||
addProperty(_blendMode);
|
||||
|
||||
_texturePath = absPath(p.texture);
|
||||
_texturePath = absPath(p.texture).string();
|
||||
_textureFile = std::make_unique<ghoul::filesystem::File>(_texturePath.value());
|
||||
|
||||
addProperty(_texturePath);
|
||||
@@ -191,7 +191,7 @@ void RenderablePlaneImageLocal::loadTexture() {
|
||||
std::to_string(hash),
|
||||
[path = _texturePath]() -> std::unique_ptr<ghoul::opengl::Texture> {
|
||||
std::unique_ptr<ghoul::opengl::Texture> texture =
|
||||
ghoul::io::TextureReader::ref().loadTexture(absPath(path));
|
||||
ghoul::io::TextureReader::ref().loadTexture(absPath(path).string());
|
||||
|
||||
LDEBUGC(
|
||||
"RenderablePlaneImageLocal",
|
||||
|
||||
Reference in New Issue
Block a user