mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 19:55:55 +08:00
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:
parent
d112d0969d
commit
66c1063995
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user