diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 4b7abdf2b07..f955ea9e946 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -467,6 +467,7 @@ void EditorNode::_update_from_settings() { bool use_hdr_2d = GLOBAL_GET("rendering/viewport/hdr_2d"); scene_root->set_use_hdr_2d(use_hdr_2d); + get_viewport()->set_use_hdr_2d(use_hdr_2d); float mesh_lod_threshold = GLOBAL_GET("rendering/mesh_lod/lod_change/threshold_pixels"); scene_root->set_mesh_lod_threshold(mesh_lod_threshold); diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index 8df7bfbd586..abb6f8ec907 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -1892,7 +1892,7 @@ SceneTree::SceneTree() { const bool transparent_background = GLOBAL_DEF("rendering/viewport/transparent_background", false); root->set_transparent_background(transparent_background); - const bool use_hdr_2d = GLOBAL_DEF_RST_BASIC("rendering/viewport/hdr_2d", false); + const bool use_hdr_2d = GLOBAL_DEF_BASIC("rendering/viewport/hdr_2d", false); root->set_use_hdr_2d(use_hdr_2d); const int ssaa_mode = GLOBAL_DEF_BASIC(PropertyInfo(Variant::INT, "rendering/anti_aliasing/quality/screen_space_aa", PROPERTY_HINT_ENUM, "Disabled (Fastest),FXAA (Fast)"), 0);