diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-09-24 02:46:09 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-09-24 02:46:09 +0200 |
| commit | d5518e6302eff102383a612bcecc3a3457e025f8 (patch) | |
| tree | 452b336637a596d10019ceb072ba1a52e06d79fb /unity-shared | |
| parent | 635efa9ef59d4c4364bf2b6f9e5f2b03d205b5c0 (diff) | |
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)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/CompizUtils.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
