Fix .glb loading (Windows)

Fixes loading of https://github.com/KhronosGroup/glTF/blob/master/sampleModels/Duck/glTF-Binary/Duck.glb
This commit is contained in:
r-lyeh
2016-08-29 16:56:18 +02:00
committed by GitHub
parent c0127e81bd
commit 264d536445

View File

@@ -2401,7 +2401,7 @@ bool TinyGLTFLoader::LoadBinaryFromFile(Scene *scene, std::string *err,
unsigned int check_sections) {
std::stringstream ss;
std::ifstream f(filename.c_str());
std::ifstream f(filename.c_str(), std::ios::binary);
if (!f) {
ss << "Failed to open file: " << filename << std::endl;
if (err) {