remove compiler warning

Change-Id: I40750320d21165333b195aca7564a6f4ee9d9eef
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
This commit is contained in:
Jørgen Lind 2013-10-30 12:41:12 +01:00 committed by The Qt Project
parent f1927370cb
commit aa92cab346

View File

@ -346,12 +346,12 @@ void renderAScene(int w, int h)
for (int i=0; i<1000; ++i) { for (int i=0; i<1000; ++i) {
GLfloat pos[] = { GLfloat pos[] = {
(rand() % 100) / 100., (rand() % 100) / 100.f,
(rand() % 100) / 100., (rand() % 100) / 100.f,
(rand() % 100) / 100., (rand() % 100) / 100.f,
(rand() % 100) / 100., (rand() % 100) / 100.f,
(rand() % 100) / 100., (rand() % 100) / 100.f,
(rand() % 100) / 100. (rand() % 100) / 100.f
}; };
glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 0, pos); glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 0, pos);