summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond.kjernasen@nokia.com>2010-08-25 08:53:06 (GMT)
committerTrond Kjernåsen <trond.kjernasen@nokia.com>2010-08-25 08:53:06 (GMT)
commit3c2dc7f652996d1f3b504b42d872734df2e9234f (patch)
tree10ce08f34b15e632543bed91634b7e9799d982b2 /src/opengl
parent76680eff3fbbdaace80bdb89f68e678c4c99e492 (diff)
downloadQt-3c2dc7f652996d1f3b504b42d872734df2e9234f.zip
Qt-3c2dc7f652996d1f3b504b42d872734df2e9234f.tar.gz
Qt-3c2dc7f652996d1f3b504b42d872734df2e9234f.tar.bz2
WGL_COLOR_BITS_ARB should not take the alpha bits into account.
The WGL_COLOR_BITS_ARB attribute is only supposed to specify the number of color bits in each buffer, *excluding* the alpha bits. Task-number: QTBUG-13141 Reviewed-by: Samuel
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl_win.cpp b/src/opengl/qgl_win.cpp
index ed4814f..55f224a 100644
--- a/src/opengl/qgl_win.cpp
+++ b/src/opengl/qgl_win.cpp
@@ -920,7 +920,7 @@ int QGLContext::choosePixelFormat(void* dummyPfd, HDC pdc)
iAttributes[i++] = WGL_DRAW_TO_WINDOW_ARB;
iAttributes[i++] = TRUE;
iAttributes[i++] = WGL_COLOR_BITS_ARB;
- iAttributes[i++] = 32;
+ iAttributes[i++] = 24;
iAttributes[i++] = WGL_DOUBLE_BUFFER_ARB;
iAttributes[i++] = d->glFormat.doubleBuffer();
if (d->glFormat.stereo()) {