Skip to content

Commit

Permalink
fix opening texture files in text mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisenwave committed Feb 6, 2021
1 parent 51f1794 commit c412329
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ std::optional<Texture> loadTexture(const std::string &name, const std::string &m
{
std::string sanitizedName = name;
std::replace(sanitizedName.begin(), sanitizedName.end(), '\\', '/');
std::optional<FileInputStream> stream = FileInputStream::open(sanitizedName);
std::optional<FileInputStream> 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;
Expand Down
2 changes: 1 addition & 1 deletion voxelio

0 comments on commit c412329

Please sign in to comment.