Avoid truncation warning in openglwindow example
msvc shows a warning about double -> float truncation. Avoid this. Change-Id: I1b74cf407c81c881df5e95cc7d64a210888595e3 Reviewed-by: Jørgen Lind <jorgen.lind@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
This commit is contained in:
parent
4d08d80be6
commit
ba77406c4d
@ -144,7 +144,7 @@ void TriangleWindow::render()
|
|||||||
m_program->bind();
|
m_program->bind();
|
||||||
|
|
||||||
QMatrix4x4 matrix;
|
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.translate(0, 0, -2);
|
||||||
matrix.rotate(100.0f * m_frame / screen()->refreshRate(), 0, 1, 0);
|
matrix.rotate(100.0f * m_frame / screen()->refreshRate(), 0, 1, 0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user