From c412329e4e0a98de3231d453f4ee2121fa9519fe Mon Sep 17 00:00:00 2001 From: eisenwave Date: Sat, 6 Feb 2021 14:42:42 +0100 Subject: [PATCH] fix opening texture files in text mode --- io.cpp | 2 +- voxelio | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/io.cpp b/io.cpp index a6786fa..0d528bd 100644 --- a/io.cpp +++ b/io.cpp @@ -123,7 +123,7 @@ std::optional loadTexture(const std::string &name, const std::string &m { std::string sanitizedName = name; std::replace(sanitizedName.begin(), sanitizedName.end(), '\\', '/'); - std::optional stream = FileInputStream::open(sanitizedName); + std::optional stream = FileInputStream::open(sanitizedName, OpenMode::BINARY); if (not stream.has_value()) { VXIO_LOG(WARNING, "Failed to open texture file \"" + name + "\" of material \"" + material + '"'); return std::nullopt; diff --git a/voxelio b/voxelio index b9a85c3..0901d81 160000 --- a/voxelio +++ b/voxelio @@ -1 +1 @@ -Subproject commit b9a85c351d46ad6a534f669ac359ff6312372441 +Subproject commit 0901d811bc194b87af6fbf4bf9828f08ca76dd4e