From 80634683b14236b13dcdd789a5a80392c22da8de Mon Sep 17 00:00:00 2001 From: Brian Searls Date: Sat, 5 Sep 2020 14:13:15 -0700 Subject: [PATCH] Force a panel update when configuring bilinear. - Fix #727 --- src/wx/cmdevents.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wx/cmdevents.cpp b/src/wx/cmdevents.cpp index cf528d27..e083bc24 100644 --- a/src/wx/cmdevents.cpp +++ b/src/wx/cmdevents.cpp @@ -2872,6 +2872,11 @@ EVT_HANDLER(wxID_ABOUT, "About...") EVT_HANDLER(Bilinear, "Use bilinear filter with 3d renderer") { GetMenuOptionBool("Bilinear", gopts.bilinear); + // Force new panel with new bilinear option + if (panel->panel) { + panel->panel->Destroy(); + panel->panel = nullptr; + } update_opts(); }