Merge pull request #140 from timmmeh/master

Adding default values for min and mag filter.
This commit is contained in:
Syoyo Fujita 2019-02-10 00:01:11 +09:00 committed by GitHub
commit d2fb7dc2af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -468,7 +468,9 @@ struct Sampler {
Value extras; Value extras;
Sampler() 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), wrapT(TINYGLTF_TEXTURE_WRAP_REPEAT),
wrapR(TINYGLTF_TEXTURE_WRAP_REPEAT){} wrapR(TINYGLTF_TEXTURE_WRAP_REPEAT){}
bool operator==(const Sampler &) const; bool operator==(const Sampler &) const;