summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2017-12-26 12:49:54 -0300
committerJuan Linietsky <juan@godotengine.org>2017-12-26 12:50:46 -0300
commitedd3bd8cb8a64c1c5bf770c7103809a0ba64a4f0 (patch)
tree3cccecca05fadfc1a0cc4bc7d33e19a389bf1365 /scene
parentb411029e31c7bb290aa2d99cb66b4285ba65780f (diff)
Ability to set flags via code in StreamTexture, as some users find it useful. Fixes #14526.
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/texture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp
index 987d6c5f6a..35d0d55d85 100644
--- a/scene/resources/texture.cpp
+++ b/scene/resources/texture.cpp
@@ -707,6 +707,8 @@ Ref<Image> StreamTexture::get_data() const {
}
void StreamTexture::set_flags(uint32_t p_flags) {
+ flags = p_flags;
+ VS::get_singleton()->texture_set_flags(texture, flags);
}
void StreamTexture::reload_from_file() {