Fixing bug report 3104860 -- setting the accumulator bits to one if GLUT_ACCUM is...
authorJohn F. Fay <johnffay@nettally.com>
Tue, 25 Jan 2011 05:47:56 +0000 (05:47 +0000)
committerJohn F. Fay <johnffay@nettally.com>
Tue, 25 Jan 2011 05:47:56 +0000 (05:47 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@890 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_window.c

index c7a07c6..4663aba 100644 (file)
@@ -679,7 +679,7 @@ static void fghFillPFD( PIXELFORMATDESCRIPTOR *ppfd, HDC hdc, unsigned char laye
   ppfd->cGreenShift = 0;
   ppfd->cBlueShift = 0;
   ppfd->cAlphaShift = 0;
-  ppfd->cAccumBits = 0;
+  ppfd->cAccumBits = ( fgState.DisplayMode & GLUT_ACCUM ) ? 1 : 0;
   ppfd->cAccumRedBits = 0;
   ppfd->cAccumGreenBits = 0;
   ppfd->cAccumBlueBits = 0;