diff --git a/dart/gui/GlutWindow.cpp b/dart/gui/GlutWindow.cpp index 1d2dd34b21374..40e8cf3d43d58 100644 --- a/dart/gui/GlutWindow.cpp +++ b/dart/gui/GlutWindow.cpp @@ -99,7 +99,11 @@ void GlutWindow::initWindow(int _w, int _h, const char* _name) { // glutTimerFunc(mDisplayTimeout, refreshTimer, 0); // glutTimerFunc(mDisplayTimeout, runTimer, 0); +#ifndef _WIN32 glDisable(GL_MULTISAMPLE); +#endif + // TODO: Disabled use of GL_MULTISAMPLE for Windows. Please see #411 for the + // detail. } void GlutWindow::reshape(int _w, int _h) { diff --git a/dart/gui/Win3D.cpp b/dart/gui/Win3D.cpp index 2cdab4d012577..439eb4536cee0 100644 --- a/dart/gui/Win3D.cpp +++ b/dart/gui/Win3D.cpp @@ -97,10 +97,14 @@ void Win3D::keyboard(unsigned char _key, int _x, int _y) { case 'c': case 'C': // screen capture mCapture = !mCapture; +#ifndef _WIN32 if (mCapture) glEnable(GL_MULTISAMPLE); else glDisable(GL_MULTISAMPLE); +#endif + // TODO: Disabled use of GL_MULTISAMPLE for Windows. Please see #411 for + // the detail. break; case 27: // ESC exit(0);