Parcourir la source

Fixed gcc compilation error

Otger il y a 9 ans
Parent
commit
2fe401fc54
1 fichiers modifiés avec 8 ajouts et 2 suppressions
  1. 8 2
      code/glTFAsset.h

+ 8 - 2
code/glTFAsset.h

@@ -815,16 +815,22 @@ namespace glTF
     {
         std::string copyright; //!< A copyright message suitable for display to credit the content creator.
         std::string generator; //!< Tool that generated this glTF model.Useful for debugging.
-        bool premultipliedAlpha = false; //!< Specifies if the shaders were generated with premultiplied alpha. (default: false)
+        bool premultipliedAlpha; //!< Specifies if the shaders were generated with premultiplied alpha. (default: false)
 
         struct {
             std::string api;     //!< Specifies the target rendering API (default: "WebGL")
             std::string version; //!< Specifies the target rendering API (default: "1.0.3")
         } profile; //!< Specifies the target rendering API and version, e.g., WebGL 1.0.3. (default: {})
 
-        int version = 0; //!< The glTF format version (should be 1)
+        int version; //!< The glTF format version (should be 1)
 
         void Read(Document& doc);
+        
+        AssetMetadata()
+            : premultipliedAlpha(false),
+            , version(0)
+        {
+        }
     };
 
     //