Merge pull request #12 from r-lyeh/master

Fix .glb loading (Windows)
This commit is contained in:
Syoyo Fujita 2016-08-30 14:45:43 +09:00 committed by GitHub
commit 0976b09d4f

View File

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