From d5518e6302eff102383a612bcecc3a3457e025f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 24 Sep 2014 02:46:09 +0200 Subject: CompizUtils: initialize a MatrixList for each TextureQuad, so we avoid to create one at each draw Keep a reference not to break old code (bzr r3806.12.10) --- unity-shared/CompizUtils.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'unity-shared') diff --git a/unity-shared/CompizUtils.h b/unity-shared/CompizUtils.h index bab45a532..f60070cea 100644 --- a/unity-shared/CompizUtils.h +++ b/unity-shared/CompizUtils.h @@ -31,8 +31,14 @@ namespace compiz_utils struct TextureQuad { + TextureQuad() + : matrices(1) + , matrix(matrices[0]) + {} + CompRect box; - GLTexture::Matrix matrix; + GLTexture::MatrixList matrices; + GLTexture::Matrix& matrix; }; struct SimpleTexture -- cgit v1.2.3