diff --git a/examples/reflection-demo/gltf-scene.cpp b/examples/reflection-demo/gltf-scene.cpp index d752149..9b5a67f 100644 --- a/examples/reflection-demo/gltf-scene.cpp +++ b/examples/reflection-demo/gltf-scene.cpp @@ -163,6 +163,8 @@ void glTF::LoadFromFile(const std::string& filename) mBuffer = LoadFile(binFile); jsonBuffer = LoadFile(jsonFile); + jsonBuffer.push_back('\0'); // It should be null terminated. + // Log errors if(mBuffer.empty()) {