diff options
author | clayjohn <claynjohn@gmail.com> | 2023-02-25 16:24:41 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2023-02-26 12:28:02 -0800 |
commit | c69b14e96e3191622c06aa1e98c7f15f1fc895d4 (patch) | |
tree | 59ea6fe8dd90524515103038b117cf1c2a0902c5 /scene/resources/camera_attributes.cpp | |
parent | 84a80721c5308df36c7295949c76a622c5e0edb9 (diff) | |
download | redot-engine-c69b14e96e3191622c06aa1e98c7f15f1fc895d4.tar.gz |
Add warnings for unsupported features in mobile and gl_compatibility backends
Diffstat (limited to 'scene/resources/camera_attributes.cpp')
-rw-r--r-- | scene/resources/camera_attributes.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/resources/camera_attributes.cpp b/scene/resources/camera_attributes.cpp index 61df56523d..8f4f804397 100644 --- a/scene/resources/camera_attributes.cpp +++ b/scene/resources/camera_attributes.cpp @@ -394,6 +394,13 @@ void CameraAttributesPhysical::_update_frustum() { bool use_far = (far < frustum_far) && (far > 0.0); bool use_near = near > frustum_near; +#ifdef DEBUG_ENABLED + if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") { + // Force disable DoF in editor builds to suppress warnings. + use_far = false; + use_near = false; + } +#endif RS::get_singleton()->camera_attributes_set_dof_blur( get_rid(), use_far, |