summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-07 07:18:12 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-07 07:18:12 (GMT)
commita8586e786cb2aab173ddb419b1b1151aecae84e0 (patch)
treec2ae0db23cc12bf573e58215a4580cbfd41e9ed0 /demos
parent8a6f4436477d39aa3e26a935922ece5c7ae1a9ad (diff)
downloadQt-a8586e786cb2aab173ddb419b1b1151aecae84e0.zip
Qt-a8586e786cb2aab173ddb419b1b1151aecae84e0.tar.gz
Qt-a8586e786cb2aab173ddb419b1b1151aecae84e0.tar.bz2
Make dynamic cube maps work again in boxes
Reviewed-by: trustme
Diffstat (limited to 'demos')
-rw-r--r--demos/boxes/glbuffers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/boxes/glbuffers.cpp b/demos/boxes/glbuffers.cpp
index a3d26f6..3b16d17 100644
--- a/demos/boxes/glbuffers.cpp
+++ b/demos/boxes/glbuffers.cpp
@@ -372,7 +372,7 @@ void GLRenderTargetCube::getViewMatrix(QMatrix4x4& mat, int face)
{-1.0f, -1.0f, +1.0f},
};
- memset(mat.data(), 0, sizeof(float) * 16);
+ mat.fill(0.0f);
for (int i = 0; i < 3; ++i)
mat(i, perm[face][i]) = signs[face][i];
mat(3, 3) = 1.0f;