From 4a9a84130ad481eb7e9d26764d69234881367455 Mon Sep 17 00:00:00 2001 From: fayjf Date: Tue, 25 Jan 2011 05:47:56 +0000 Subject: [PATCH] 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 --- freeglut/freeglut/src/freeglut_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeglut/freeglut/src/freeglut_window.c b/freeglut/freeglut/src/freeglut_window.c index c7a07c6..4663aba 100644 --- a/freeglut/freeglut/src/freeglut_window.c +++ b/freeglut/freeglut/src/freeglut_window.c @@ -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;