Skip to content

Commit

Permalink
Disable use of GL_MULTISAMPLE for Windows (see #411)
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Aug 11, 2015
1 parent 6118b37 commit 9c07b19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dart/gui/GlutWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 4 additions & 0 deletions dart/gui/Win3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9c07b19

Please sign in to comment.