From 471af30f7b96099735505d6ba42e8b6fcdff0bb9 Mon Sep 17 00:00:00 2001 From: Lunarisnia Date: Sun, 15 Oct 2023 12:18:13 +0700 Subject: [PATCH] Fix disabling depth prepass breaks opaque material (cherry picked from commit 28f7a62ae4ec07dd60ec95ed5a0ef6b20e606903) --- servers/rendering_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp index 4c6b7651573..266e3292adb 100644 --- a/servers/rendering_server.cpp +++ b/servers/rendering_server.cpp @@ -2925,8 +2925,8 @@ void RenderingServer::init() { GLOBAL_DEF("rendering/shading/overrides/force_lambert_over_burley", false); GLOBAL_DEF("rendering/shading/overrides/force_lambert_over_burley.mobile", true); - GLOBAL_DEF("rendering/driver/depth_prepass/enable", true); - GLOBAL_DEF("rendering/driver/depth_prepass/disable_for_vendors", "PowerVR,Mali,Adreno,Apple"); + GLOBAL_DEF_RST("rendering/driver/depth_prepass/enable", true); + GLOBAL_DEF_RST("rendering/driver/depth_prepass/disable_for_vendors", "PowerVR,Mali,Adreno,Apple"); GLOBAL_DEF_RST("rendering/textures/default_filters/use_nearest_mipmap_filter", false); GLOBAL_DEF_RST(PropertyInfo(Variant::INT, "rendering/textures/default_filters/anisotropic_filtering_level", PROPERTY_HINT_ENUM, String::utf8("Disabled (Fastest),2× (Faster),4× (Fast),8× (Average),16× (Slow)")), 2);