From 5892d3e3ea9a455e518cdd3e501647ac1ab5b6c3 Mon Sep 17 00:00:00 2001 From: Selmar Kok Date: Tue, 4 Dec 2018 19:55:56 +0100 Subject: [PATCH] Set a default for sampler.wrapR, because it was serializing an uninitialized value --- tiny_gltf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index fb2719b..c9203cf 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -455,7 +455,8 @@ struct Sampler { Sampler() : wrapS(TINYGLTF_TEXTURE_WRAP_REPEAT), - wrapT(TINYGLTF_TEXTURE_WRAP_REPEAT) {} + wrapT(TINYGLTF_TEXTURE_WRAP_REPEAT), + wrapR(TINYGLTF_TEXTURE_WRAP_REPEAT){} bool operator==(const Sampler &) const; };