From 83bfa61f8d213bcf2b860d5bbb18b76834800ff9 Mon Sep 17 00:00:00 2001 From: Daniel Hritzkiv Date: Wed, 9 Aug 2017 11:07:08 -0400 Subject: [PATCH] version in glb header is stored as uint32_t Validator complains about `1` not being a valid version, however. --- code/glTF2Asset.h | 2 +- code/glTFAsset.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/glTF2Asset.h b/code/glTF2Asset.h index 100ed9d..416c9e7 100644 --- a/code/glTF2Asset.h +++ b/code/glTF2Asset.h @@ -177,7 +177,7 @@ namespace glTF2 struct GLB_Header { uint8_t magic[4]; //!< Magic number: "glTF" - float_t version; //!< Version number + uint32_t version; //!< Version number uint32_t length; //!< Total length of the Binary glTF, including header, scene, and body, in bytes uint32_t sceneLength; //!< Length, in bytes, of the glTF scene uint32_t sceneFormat; //!< Specifies the format of the glTF scene (see the SceneFormat enum) diff --git a/code/glTFAsset.h b/code/glTFAsset.h index ff93765..30d0bc0 100644 --- a/code/glTFAsset.h +++ b/code/glTFAsset.h @@ -177,7 +177,7 @@ namespace glTF struct GLB_Header { uint8_t magic[4]; //!< Magic number: "glTF" - float_t version; //!< Version number (always 1 as of the last update) + uint32_t version; //!< Version number (always 1 as of the last update) uint32_t length; //!< Total length of the Binary glTF, including header, scene, and body, in bytes uint32_t sceneLength; //!< Length, in bytes, of the glTF scene uint32_t sceneFormat; //!< Specifies the format of the glTF scene (see the SceneFormat enum) -- 2.7.4