diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-06-25 19:43:29 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-06-25 19:43:29 -0300 |
commit | 71cc2561c63b2b2bc692e370acbc8bb57f031567 (patch) | |
tree | 74dc43652002883f15b0be3cc0b255714d7357b3 /drivers/png | |
parent | 29b2e811f6d775c07af68e466401aaf47314b679 (diff) | |
parent | acb5cdb5744711beefc7d353aa51cb1d6b148c6a (diff) |
Merge pull request #2187 from romulox-x/mirroredRepeat
added support for mirrored repeat texture wrapping
Diffstat (limited to 'drivers/png')
-rw-r--r-- | drivers/png/resource_saver_png.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/png/resource_saver_png.cpp b/drivers/png/resource_saver_png.cpp index 8524aa2121..76e0c03c46 100644 --- a/drivers/png/resource_saver_png.cpp +++ b/drivers/png/resource_saver_png.cpp @@ -75,6 +75,9 @@ Error ResourceSaverPNG::save(const String &p_path,const RES& p_resource,uint32_t if (bool(texture->get_flags()&Texture::FLAG_CONVERT_TO_LINEAR)) { text+="tolinear=true\n"; } + if (bool(texture->get_flags()&Texture::FLAG_MIRRORED_REPEAT)) { + text+="mirroredrepeat=true\n"; + } if (text!="" || FileAccess::exists(p_path+".flags")) { |