Adding default values for min and mag filter.

This commit is contained in:
timmmeh 2019-01-30 18:38:46 -08:00
parent ead876fce9
commit 73584ba7b7

View File

@ -468,7 +468,9 @@ struct Sampler {
Value extras;
Sampler()
: wrapS(TINYGLTF_TEXTURE_WRAP_REPEAT),
: minFilter(TINYGLTF_TEXTURE_FILTER_LINEAR_MIPMAP_LINEAR)
magFilter(TINYGLTF_TEXTURE_FILTER_LINEAR)
wrapS(TINYGLTF_TEXTURE_WRAP_REPEAT),
wrapT(TINYGLTF_TEXTURE_WRAP_REPEAT),
wrapR(TINYGLTF_TEXTURE_WRAP_REPEAT){}
bool operator==(const Sampler &) const;