Fixing bug report 3104860 -- setting the accumulator bits to one if GLUT_ACCUM is set (Windows code only)

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@890 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
fayjf 2011-01-25 05:47:56 +00:00
parent ad3899e6a1
commit 4a9a84130a

View 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;