From 6285025b3d6303c8d73940c85788cf2f9b855271 Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Sat, 6 Jul 2024 12:52:00 -0400 Subject: [PATCH] wzscriptdebug: Remove old terrain renderer toggle --- src/wzscriptdebug.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wzscriptdebug.cpp b/src/wzscriptdebug.cpp index 683906dd165..e3f42147802 100644 --- a/src/wzscriptdebug.cpp +++ b/src/wzscriptdebug.cpp @@ -982,6 +982,8 @@ class WzGraphicsPanel : public W_FORM auto dropdownWidget = panel->makeTerrainQualityDropdown(3); +#if defined(DEBUG) + // Ideally, the fallback terrain renderer will be removed soon - so don't even offer this toggle outside of debug builds auto pWeakTerrainQualityDropdown = std::weak_ptr(dropdownWidget); prevButton = panel->createButton(3, "Toggle Old / New Shaders", [pWeakTerrainQualityDropdown](){ if (debugToggleTerrainShaderType()) @@ -995,6 +997,9 @@ class WzGraphicsPanel : public W_FORM } } }, dropdownWidget); +#else + (void)dropdownWidget; +#endif auto shadowsLabel = panel->createLabel(4, font_regular_bold, "Shadow Mapping:"); auto shadowFilterDropdownWidget = panel->makeShadowFilterSizeDropdown(4, shadowsLabel);