mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Make all unsupported renderer message features consistently warnings
Previously, some messages indicating a lack of support were errors instead of warnings. Some messages were also not shown when running a release export template. - Use "renderer" terminology consistently instead of "rendering method".
This commit is contained in:
parent
f5918a9d35
commit
2cf7af9149
12 changed files with 47 additions and 31 deletions
|
|
@ -67,7 +67,7 @@ void RendererCameraAttributes::camera_attributes_set_dof_blur(RID p_camera_attri
|
|||
ERR_FAIL_NULL(cam_attributes);
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility" && (p_far_enable || p_near_enable)) {
|
||||
WARN_PRINT_ONCE_ED("DoF blur is only available when using the Forward+ or Mobile renderers.");
|
||||
WARN_PRINT_ONCE_ED("Depth of field blur is only available when using the Forward+ or Mobile renderer.");
|
||||
}
|
||||
#endif
|
||||
cam_attributes->dof_blur_far_enabled = p_far_enable;
|
||||
|
|
@ -145,7 +145,7 @@ void RendererCameraAttributes::camera_attributes_set_auto_exposure(RID p_camera_
|
|||
}
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility" && p_enable) {
|
||||
WARN_PRINT_ONCE_ED("Auto exposure is only available when using the Forward+ or Mobile renderers.");
|
||||
WARN_PRINT_ONCE_ED("Auto-exposure is only available when using the Forward+ or Mobile renderer.");
|
||||
}
|
||||
#endif
|
||||
cam_attributes->use_auto_exposure = p_enable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue