summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-07 17:18:12 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-07 17:18:12 +1000
commita8586e786cb2aab173ddb419b1b1151aecae84e0 (patch)
treec2ae0db23cc12bf573e58215a4580cbfd41e9ed0
parent8a6f4436477d39aa3e26a935922ece5c7ae1a9ad (diff)
Make dynamic cube maps work again in boxes
Reviewed-by: trustme
-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 a3d26f6089..3b16d17154 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;