Merge lp:~hikiko/compiz/compiz.opt-fix into lp:compiz/0.9.12

Proposed by Eleni Maria Stea
Status: Merged
Approved by: Stephen M. Webb
Approved revision: 3933
Merged at revision: 3933
Proposed branch: lp:~hikiko/compiz/compiz.opt-fix
Merge into: lp:compiz/0.9.12
Diff against target: 12 lines (+1/-2)
1 file modified
plugins/opengl/src/screen.cpp (+1/-2)
To merge this branch: bzr merge lp:~hikiko/compiz/compiz.opt-fix
Reviewer Review Type Date Requested Status
Stephen M. Webb Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+252797@code.launchpad.net

Commit message

Minor optimisation fix:
Replaced glLoadIdentity, glMultMatrixf with glLoadMatrixf to avoid the unnecessary matrix multiplication: identity * some projection matrix

Description of the change

Minor optimisation fix:
Replaced glLoadIdentity, glMultMatrixf with glLoadMatrixf to avoid the unnecessary matrix multiplication: identity * some projection matrix

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Stephen M. Webb (bregma) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugins/opengl/src/screen.cpp'
--- plugins/opengl/src/screen.cpp 2015-02-26 18:58:45 +0000
+++ plugins/opengl/src/screen.cpp 2015-03-12 18:05:30 +0000
@@ -1735,8 +1735,7 @@
17351735
1736 #ifndef USE_GLES1736 #ifndef USE_GLES
1737 glMatrixMode (GL_PROJECTION);1737 glMatrixMode (GL_PROJECTION);
1738 glLoadIdentity ();1738 glLoadMatrixf (projection_array);
1739 glMultMatrixf (projection_array);
1740 glMatrixMode (GL_MODELVIEW);1739 glMatrixMode (GL_MODELVIEW);
1741 #endif1740 #endif
17421741

Subscribers

People subscribed via source and target branches