From 80bbbcf8c32487821a332b7cada0db19a902d803 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 18 Apr 2023 08:35:57 +0200 Subject: [PATCH] SPE-1354 - Render travel toolpaths using 'flat' shader --- src/slic3r/GUI/GCodeViewer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index 36ac85df9..bd4653ab8 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -697,7 +697,9 @@ void GCodeViewer::init() buffer.render_primitive_type = TBuffer::ERenderPrimitiveType::Line; buffer.vertices.format = VBuffer::EFormat::Position; #if ENABLE_GL_CORE_PROFILE - buffer.shader = OpenGLManager::get_gl_info().is_core_profile() ? "dashed_thick_lines" : "flat"; + // on MAC using the geometry shader of dashed_thick_lines is too slow + buffer.shader = "flat"; +// buffer.shader = OpenGLManager::get_gl_info().is_core_profile() ? "dashed_thick_lines" : "flat"; #else buffer.shader = "flat"; #endif // ENABLE_GL_CORE_PROFILE