mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #105267 from clayjohn/rd-mobile-pipelines
Pre-allocate more resources when screen textures are detected in the Mobile renderer
This commit is contained in:
commit
448f159c69
1 changed files with 8 additions and 0 deletions
|
|
@ -910,6 +910,14 @@ void RenderForwardMobile::_render_scene(RenderDataRD *p_render_data, const Color
|
|||
global_pipeline_data_required.use_lightmaps = true;
|
||||
}
|
||||
|
||||
if (global_surface_data.screen_texture_used || global_surface_data.depth_texture_used) {
|
||||
if (rb_data.is_valid()) {
|
||||
// Just called to create the framebuffer since we know we will need it later.
|
||||
rb_data->get_color_fbs(RenderBufferDataForwardMobile::FB_CONFIG_RENDER_PASS);
|
||||
}
|
||||
global_pipeline_data_required.use_separate_post_pass = true;
|
||||
}
|
||||
|
||||
_update_dirty_geometry_pipelines();
|
||||
|
||||
p_render_data->scene_data->emissive_exposure_normalization = -1.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue