Skip to content

Commit

Permalink
wzscriptdebug: Remove old terrain renderer toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jul 6, 2024
1 parent 90b09a4 commit 6285025
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wzscriptdebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>(dropdownWidget);
prevButton = panel->createButton(3, "Toggle Old / New Shaders", [pWeakTerrainQualityDropdown](){
if (debugToggleTerrainShaderType())
Expand All @@ -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);
Expand Down

0 comments on commit 6285025

Please sign in to comment.