Skip to content

Commit c412329

Browse files
committed
fix opening texture files in text mode
1 parent 51f1794 commit c412329

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

io.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ std::optional<Texture> loadTexture(const std::string &name, const std::string &m
123123
{
124124
std::string sanitizedName = name;
125125
std::replace(sanitizedName.begin(), sanitizedName.end(), '\\', '/');
126-
std::optional<FileInputStream> stream = FileInputStream::open(sanitizedName);
126+
std::optional<FileInputStream> stream = FileInputStream::open(sanitizedName, OpenMode::BINARY);
127127
if (not stream.has_value()) {
128128
VXIO_LOG(WARNING, "Failed to open texture file \"" + name + "\" of material \"" + material + '"');
129129
return std::nullopt;

0 commit comments

Comments
 (0)