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
1=== modified file 'plugins/opengl/src/screen.cpp'
2--- plugins/opengl/src/screen.cpp 2015-02-26 18:58:45 +0000
3+++ plugins/opengl/src/screen.cpp 2015-03-12 18:05:30 +0000
4@@ -1735,8 +1735,7 @@
5
6 #ifndef USE_GLES
7 glMatrixMode (GL_PROJECTION);
8- glLoadIdentity ();
9- glMultMatrixf (projection_array);
10+ glLoadMatrixf (projection_array);
11 glMatrixMode (GL_MODELVIEW);
12 #endif
13

Subscribers

People subscribed via source and target branches