mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 06:03:38 +00:00
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
This commit is contained in:
commit
c255acebe8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user