Force a panel update when configuring bilinear.

- Fix #727
This commit is contained in:
Brian Searls 2020-09-05 14:13:15 -07:00 committed by Rafael Kitover
parent 87fac44fdb
commit 80634683b1
1 changed files with 5 additions and 0 deletions

View File

@ -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();
}