summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-10-05 10:07:16 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-10-05 10:07:16 +0200
commitc255acebe867b65bd7cd81a900c0e3144e2d472a (patch)
treee413053847ec1c55552c7ff625bebe8736861f72
parentb42aa5ad9d185a5263885755a17dc9d4e93314d5 (diff)
parent59d0fdbacc03da223666e16014285f6818894d0b (diff)
downloadredot-engine-c255acebe867b65bd7cd81a900c0e3144e2d472a.tar.gz
Merge pull request #81607 from Rindbee/fix-UPDATE_WHEN_VISIBLE-not-work-in-exported-project
Fix `SubViewport` with `UPDATE_WHEN_VISIBLE` not working properly in exported project
-rw-r--r--servers/rendering/renderer_rd/storage_rd/material_storage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/storage_rd/material_storage.cpp b/servers/rendering/renderer_rd/storage_rd/material_storage.cpp
index fd65b739ab..3bd35c53cc 100644
--- a/servers/rendering/renderer_rd/storage_rd/material_storage.cpp
+++ b/servers/rendering/renderer_rd/storage_rd/material_storage.cpp
@@ -931,11 +931,11 @@ void MaterialStorage::MaterialData::update_textures(const HashMap<StringName, Va
roughness_detect_texture = tex;
roughness_channel = RS::TextureDetectRoughnessChannel(p_texture_uniforms[i].hint - ShaderLanguage::ShaderNode::Uniform::HINT_ROUGHNESS_R);
}
+#endif // TOOLS_ENABLED
if (tex->render_target) {
tex->render_target->was_used = true;
render_target_cache.push_back(tex->render_target);
}
-#endif
}
if (rd_texture.is_null()) {
rd_texture = texture_storage->texture_rd_get_default(TextureStorage::DEFAULT_RD_TEXTURE_WHITE);