You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add warnings for unsupported features in mobile and gl_compatibility backends
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user