summaryrefslogtreecommitdiff
path: root/drivers/png
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-06-25 19:43:29 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-06-25 19:43:29 -0300
commit71cc2561c63b2b2bc692e370acbc8bb57f031567 (patch)
tree74dc43652002883f15b0be3cc0b255714d7357b3 /drivers/png
parent29b2e811f6d775c07af68e466401aaf47314b679 (diff)
parentacb5cdb5744711beefc7d353aa51cb1d6b148c6a (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.cpp3
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")) {