summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Agocs <[email protected]>2014-02-19 16:38:00 +0100
committerThe Qt Project <[email protected]>2014-02-21 15:52:59 +0100
commitba77406c4db35f092591fe09fde9a6574ab3a493 (patch)
tree82d99c8f9d0f39931d61af956d5046b1a1b23d95
parent4d08d80be60af14c5daed7c6f8d37538aea6c429 (diff)
Avoid truncation warning in openglwindow example
msvc shows a warning about double -> float truncation. Avoid this. Change-Id: I1b74cf407c81c881df5e95cc7d64a210888595e3 Reviewed-by: Jørgen Lind <[email protected]> Reviewed-by: Gunnar Sletta <[email protected]>
-rw-r--r--examples/gui/openglwindow/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gui/openglwindow/main.cpp b/examples/gui/openglwindow/main.cpp
index 237680a8893..aa1c6d7fa1f 100644
--- a/examples/gui/openglwindow/main.cpp
+++ b/examples/gui/openglwindow/main.cpp
@@ -144,7 +144,7 @@ void TriangleWindow::render()
m_program->bind();
QMatrix4x4 matrix;
- matrix.perspective(60, 4.0/3.0, 0.1, 100.0);
+ matrix.perspective(60.0f, 4.0f/3.0f, 0.1f, 100.0f);
matrix.translate(0, 0, -2);
matrix.rotate(100.0f * m_frame / screen()->refreshRate(), 0, 1, 0);