Enable the GLU tesselator on MSW if we have a recent OpenGL module

This commit is contained in:
Alessandro Ranellucci 2014-12-24 11:49:27 +01:00
parent 4848cb7606
commit 9dd228df01

View File

@ -226,8 +226,9 @@ sub Render {
} }
my $tess; my $tess;
if (!&Wx::wxMSW) { if (!(&Wx::wxMSW && $OpenGL::VERSION < 0.6704)) {
# We can't use the GLU tesselator on MSW because of an upstream bug: # 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/ # http://sourceforge.net/p/pogl/bugs/16/
$tess = gluNewTess(); $tess = gluNewTess();
gluTessCallback($tess, GLU_TESS_BEGIN, 'DEFAULT'); gluTessCallback($tess, GLU_TESS_BEGIN, 'DEFAULT');