summaryrefslogtreecommitdiffstats
path: root/tests/auto/opengl/qglthreads
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@digia.com>2013-10-30 12:41:12 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-30 13:09:47 +0100
commitaa92cab34664143aa92ed6808ec925466de6f1d7 (patch)
tree63300a955e9f63ea0f8fcafd5e5f68c0c834ee8c /tests/auto/opengl/qglthreads
parentf1927370cbb89438c95d56e9fb4556e7c2f4f666 (diff)
remove compiler warning
Change-Id: I40750320d21165333b195aca7564a6f4ee9d9eef Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'tests/auto/opengl/qglthreads')
-rw-r--r--tests/auto/opengl/qglthreads/tst_qglthreads.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/opengl/qglthreads/tst_qglthreads.cpp b/tests/auto/opengl/qglthreads/tst_qglthreads.cpp
index c74edab9a2..f5923764b8 100644
--- a/tests/auto/opengl/qglthreads/tst_qglthreads.cpp
+++ b/tests/auto/opengl/qglthreads/tst_qglthreads.cpp
@@ -346,12 +346,12 @@ void renderAScene(int w, int h)
for (int i=0; i<1000; ++i) {
GLfloat pos[] = {
- (rand() % 100) / 100.,
- (rand() % 100) / 100.,
- (rand() % 100) / 100.,
- (rand() % 100) / 100.,
- (rand() % 100) / 100.,
- (rand() % 100) / 100.
+ (rand() % 100) / 100.f,
+ (rand() % 100) / 100.f,
+ (rand() % 100) / 100.f,
+ (rand() % 100) / 100.f,
+ (rand() % 100) / 100.f,
+ (rand() % 100) / 100.f
};
glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 0, pos);