diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2020-01-15 14:54:06 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2020-01-15 14:54:30 +0300 |
commit | 402ae12db214d127a246c8e3e28cd0ca81e7bc1f (patch) | |
tree | b6da592fd5f7528cfd8d37f3460c29c145f5a376 /sandboxes | |
parent | 3ab246df6b892c549979a801fd13e372e84cd93d (diff) |
Fix algorithm switching
Diffstat (limited to 'sandboxes')
-rw-r--r-- | sandboxes/opencsg/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sandboxes/opencsg/main.cpp b/sandboxes/opencsg/main.cpp index a0d5c4ceb..ec6c01789 100644 --- a/sandboxes/opencsg/main.cpp +++ b/sandboxes/opencsg/main.cpp @@ -387,8 +387,8 @@ void MyFrame::read_csg_settings(const wxCmdLineParser &parser) void MyFrame::set_renderer_algorithm(const wxString &alg) { - long alg_idx = get_idx("EnricoShader", CSG_ALGS); - if (alg_idx < 0 || alg_idx >= CSG_ALGS.size()) return; + long alg_idx = get_idx(alg, CSG_ALGS); + if (alg_idx < 0 || alg_idx >= long(CSG_ALGS.size())) return; // If there is a valid display in place, save its camera. auto cam = m_canvas->get_display() ? |