summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-05-26 12:40:40 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-05-26 12:40:40 (GMT)
commita670315152bf0914b8661b584d20752fd4da5b95 (patch)
treeb17288fa0014eb52b338cb933754e18c88d65cb4 /src/opengl
parentf552dc200d857505df500b3ce0b99d5f7c74c951 (diff)
downloadQt-a670315152bf0914b8661b584d20752fd4da5b95.zip
Qt-a670315152bf0914b8661b584d20752fd4da5b95.tar.gz
Qt-a670315152bf0914b8661b584d20752fd4da5b95.tar.bz2
A GLint is converted to int for passing to qBound().
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qglframebufferobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qglframebufferobject.cpp b/src/opengl/qglframebufferobject.cpp
index 2b7ad4f..338ce1f 100644
--- a/src/opengl/qglframebufferobject.cpp
+++ b/src/opengl/qglframebufferobject.cpp
@@ -395,7 +395,7 @@ void QGLFramebufferObjectPrivate::init(const QSize &sz, QGLFramebufferObject::At
GLint maxSamples;
glGetIntegerv(GL_MAX_SAMPLES_EXT, &maxSamples);
- samples = qBound(1, samples, int(maxSamples));
+ samples = qBound(1, int(samples), int(maxSamples));
glGenRenderbuffers(1, &color_buffer);
glBindRenderbuffer(GL_RENDERBUFFER_EXT, color_buffer);