Explorar o código

Ability to set flags via code in StreamTexture, as some users find it useful. Fixes #14526.

Juan Linietsky %!s(int64=7) %!d(string=hai) anos
pai
achega
edd3bd8cb8
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      scene/resources/texture.cpp

+ 2 - 0
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() {