From 9dd228df01859e2db19d65ec9ef4bef7562d49f9 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 24 Dec 2014 11:49:27 +0100 Subject: [PATCH] Enable the GLU tesselator on MSW if we have a recent OpenGL module --- lib/Slic3r/GUI/Plater/2DToolpaths.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GUI/Plater/2DToolpaths.pm b/lib/Slic3r/GUI/Plater/2DToolpaths.pm index 399f4f21a..9aec479d0 100644 --- a/lib/Slic3r/GUI/Plater/2DToolpaths.pm +++ b/lib/Slic3r/GUI/Plater/2DToolpaths.pm @@ -226,8 +226,9 @@ sub Render { } my $tess; - if (!&Wx::wxMSW) { - # We can't use the GLU tesselator on MSW because of an upstream bug: + if (!(&Wx::wxMSW && $OpenGL::VERSION < 0.6704)) { + # We can't use the GLU tesselator on MSW with older OpenGL versions + # because of an upstream bug: # http://sourceforge.net/p/pogl/bugs/16/ $tess = gluNewTess(); gluTessCallback($tess, GLU_TESS_BEGIN, 'DEFAULT');