diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-10 12:34:52 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-10 14:27:46 (GMT) |
commit | 7ddf13c8fba2aadf00c0d6c822c6b4acbd3bd54f (patch) | |
tree | e6d4db7187c1b8413a221970012d40002af01116 /src/opengl/qgl.cpp | |
parent | c94db224c6abb8ed9e214bb96a14b69eb1c557ae (diff) | |
download | Qt-7ddf13c8fba2aadf00c0d6c822c6b4acbd3bd54f.zip Qt-7ddf13c8fba2aadf00c0d6c822c6b4acbd3bd54f.tar.gz Qt-7ddf13c8fba2aadf00c0d6c822c6b4acbd3bd54f.tar.bz2 |
Make calls to QGLFormat::set*BufferSize also update flags
Reviewed-By: Trond
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r-- | src/opengl/qgl.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index 73cd6a8..7839191 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -766,6 +766,7 @@ void QGLFormat::setSamples(int numSamples) return; } d->numSamples = numSamples; + setSampleBuffers(numSamples > 0); } /*! @@ -904,6 +905,7 @@ void QGLFormat::setDepthBufferSize(int size) return; } d->depthSize = size; + setDepth(size > 0); } /*! @@ -1017,7 +1019,7 @@ void QGLFormat::setAlphaBufferSize(int size) return; } d->alphaSize = size; - setOption(QGL::AlphaChannel); + setAlpha(size > 0); } /*! @@ -1044,6 +1046,7 @@ void QGLFormat::setAccumBufferSize(int size) return; } d->accumSize = size; + setAccum(size > 0); } /*! @@ -1069,6 +1072,7 @@ void QGLFormat::setStencilBufferSize(int size) return; } d->stencilSize = size; + setStencil(size > 0); } /*! |