diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-08-21 22:11:20 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-08-21 22:11:20 (GMT) |
commit | e7846417ed95faacde38d229f66ac2725ba05c47 (patch) | |
tree | 66a94f45bd44f3e59f7c920e66355b4cb1ee47df | |
parent | 7b65d08062526e14855e6023eebf5f88f075cda7 (diff) | |
download | Qt-e7846417ed95faacde38d229f66ac2725ba05c47.zip Qt-e7846417ed95faacde38d229f66ac2725ba05c47.tar.gz Qt-e7846417ed95faacde38d229f66ac2725ba05c47.tar.bz2 |
Fix double to float truncation warning.
-rw-r--r-- | examples/opengl/pbuffers/glwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/pbuffers/glwidget.cpp b/examples/opengl/pbuffers/glwidget.cpp index d3f76d7..0073973 100644 --- a/examples/opengl/pbuffers/glwidget.cpp +++ b/examples/opengl/pbuffers/glwidget.cpp @@ -154,7 +154,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); |