summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-08-21 22:11:20 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-08-21 22:11:20 (GMT)
commite7846417ed95faacde38d229f66ac2725ba05c47 (patch)
tree66a94f45bd44f3e59f7c920e66355b4cb1ee47df
parent7b65d08062526e14855e6023eebf5f88f075cda7 (diff)
downloadQt-e7846417ed95faacde38d229f66ac2725ba05c47.zip
Qt-e7846417ed95faacde38d229f66ac2725ba05c47.tar.gz
Qt-e7846417ed95faacde38d229f66ac2725ba05c47.tar.bz2
Fix double to float truncation warning.
-rw-r--r--examples/opengl/pbuffers/glwidget.cpp2
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);