From da9e3ac06e920a889440155e59ae85843ef3ee78 Mon Sep 17 00:00:00 2001 From: "John F. Fay" 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: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@890 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freeglut_window.c b/src/freeglut_window.c index c7a07c6..4663aba 100644 --- a/src/freeglut_window.c +++ b/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; -- 1.7.10.4