Can't use subpasses when we're using Canvas background mode in Mobile
This commit is contained in:
parent
f47f4a02c8
commit
9e9a6fb6d6
|
@ -777,7 +777,7 @@ void RenderForwardMobile::_render_scene(RenderDataRD *p_render_data, const Color
|
|||
if (rb->get_scaling_3d_mode() != RS::VIEWPORT_SCALING_3D_MODE_OFF) {
|
||||
// can't do blit subpass because we're scaling
|
||||
using_subpass_post_process = false;
|
||||
} else if (p_render_data->environment.is_valid() && (environment_get_glow_enabled(p_render_data->environment) || RSG::camera_attributes->camera_attributes_uses_auto_exposure(p_render_data->camera_attributes) || RSG::camera_attributes->camera_attributes_uses_dof(p_render_data->camera_attributes))) {
|
||||
} else if (p_render_data->environment.is_valid() && (environment_get_glow_enabled(p_render_data->environment) || RSG::camera_attributes->camera_attributes_uses_auto_exposure(p_render_data->camera_attributes) || RSG::camera_attributes->camera_attributes_uses_dof(p_render_data->camera_attributes) || environment_get_background(p_render_data->environment) == RS::ENV_BG_CANVAS)) {
|
||||
// can't do blit subpass because we're using post processes
|
||||
using_subpass_post_process = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue