From 6166a54808a4bef6e750cd73590f63712a0b6cd1 Mon Sep 17 00:00:00 2001 From: Rodrigo Faselli <162915171+RF47@users.noreply.github.com> Date: Mon, 18 May 2026 12:24:47 -0300 Subject: [PATCH] only gouraud for preview mode --- src/slic3r/GUI/GCodeViewer.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index c257754653..01635e85b8 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -222,12 +222,7 @@ void GCodeViewer::SequentialView::Marker::render(int canvas_width, int canvas_he if (!m_visible) return; - const bool use_phong = wxGetApp().app_config != nullptr && - wxGetApp().app_config->get_bool(SETTING_OPENGL_REALISTIC_MODE) && - wxGetApp().app_config->get_bool(SETTING_OPENGL_REALISTIC_PHONG); - GLShaderProgram* shader = wxGetApp().get_shader(use_phong ? "phong" : "gouraud_light"); - if (shader == nullptr) - shader = wxGetApp().get_shader("gouraud_light"); + GLShaderProgram* shader = wxGetApp().get_shader("gouraud_light"); if (shader == nullptr) return; @@ -2419,12 +2414,7 @@ void GCodeViewer::render_shells(int canvas_width, int canvas_height) //if (!m_shells.visible || m_shells.volumes.empty()) return; - const bool use_phong = wxGetApp().app_config != nullptr && - wxGetApp().app_config->get_bool(SETTING_OPENGL_REALISTIC_MODE) && - wxGetApp().app_config->get_bool(SETTING_OPENGL_REALISTIC_PHONG); - GLShaderProgram* shader = wxGetApp().get_shader(use_phong ? "phong" : "gouraud_light"); - if (shader == nullptr) - shader = wxGetApp().get_shader("gouraud_light"); + GLShaderProgram* shader = wxGetApp().get_shader("gouraud_light"); if (shader == nullptr) return;