From 1739d025a9a833b00365ab3990df3f0cf974f572 Mon Sep 17 00:00:00 2001 From: daemyung jang Date: Fri, 3 Jul 2020 13:27:39 +0900 Subject: [PATCH] Initialize member variables --- tiny_gltf.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tiny_gltf.h b/tiny_gltf.h index fa16ec5..b2c76b9 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -664,6 +664,8 @@ struct Image { width = -1; height = -1; component = -1; + bits = -1; + pixel_type = -1; } DEFAULT_METHODS(Image) @@ -996,6 +998,7 @@ struct Primitive { Primitive() { material = -1; indices = -1; + mode = -1; } DEFAULT_METHODS(Primitive) bool operator==(const Primitive &) const;