diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-08-24 12:08:36 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-08-24 12:08:36 (GMT) |
commit | 59a9d6361e46cbf2a702e455d5e42ee822208fa2 (patch) | |
tree | f4d35a3d62897f748de5a9a183fdb00cb50fef6a /examples/opengl | |
parent | c354b3d4d27be3fdefc09b73c5b6965c8527e2cd (diff) | |
download | Qt-59a9d6361e46cbf2a702e455d5e42ee822208fa2.zip Qt-59a9d6361e46cbf2a702e455d5e42ee822208fa2.tar.gz Qt-59a9d6361e46cbf2a702e455d5e42ee822208fa2.tar.bz2 |
Fix double to float truncation warning.
Diffstat (limited to 'examples/opengl')
-rw-r--r-- | examples/opengl/framebufferobject2/glwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/framebufferobject2/glwidget.cpp b/examples/opengl/framebufferobject2/glwidget.cpp index 71f46fa..8159d9d 100644 --- a/examples/opengl/framebufferobject2/glwidget.cpp +++ b/examples/opengl/framebufferobject2/glwidget.cpp @@ -208,7 +208,7 @@ void GLWidget::paintGL() for (int y = 0; y < 5; ++y) { for (int x = 0; x < 5; ++x) { glTranslatef(2.0f, 0, 0); - glColor4f(0.8, 0.8, 0.8, 1.0); + glColor4f(0.8f, 0.8f, 0.8f, 1.0f); glDrawArrays(GL_QUADS, 0, 4); } glTranslatef(-10.0f, 2.0f, 0); |