Set a default for sampler.wrapR, because it was serializing an uninitialized value

This commit is contained in:
Selmar Kok 2018-12-04 19:55:56 +01:00
parent 27aab61d62
commit 5892d3e3ea

View File

@ -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;
};