From adca3035f9e053f970a95f22ae7f2875d8e90833 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Mon, 4 Jun 2018 12:32:23 +0200 Subject: [PATCH] Fixed Linux compile --- xs/src/slic3r/GUI/GLCanvas3D.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xs/src/slic3r/GUI/GLCanvas3D.cpp b/xs/src/slic3r/GUI/GLCanvas3D.cpp index 892fa5bc55..dbf7c76547 100644 --- a/xs/src/slic3r/GUI/GLCanvas3D.cpp +++ b/xs/src/slic3r/GUI/GLCanvas3D.cpp @@ -1726,11 +1726,8 @@ void GLCanvas3D::_late_init() // In that case the volumes are wainting to be moved to Vertex Buffer Objects // after the OpenGL context is being initialized. #if defined(__LINUX__) - if (m_use_VBOs && (m_volumes != nullptr) - { - m_volumes->finalize_geometry(m_use_VBOs); - if ($^O eq 'linux' && $self->UseVBOs); - } + if (m_use_VBOs && (m_volumes != nullptr)) + m_volumes->finalize_geometry(m_use_VBOs); #endif // __LINUX__ zoom_to_bed();