Merge lp:~smspillaz/unity/unity.fix_1016789 into lp:unity
Status: | Merged |
---|---|
Approved by: | Daniel van Vugt |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2497 |
Proposed branch: | lp:~smspillaz/unity/unity.fix_1016789 |
Merge into: | lp:unity |
Diff against target: |
21 lines (+2/-2) 1 file modified
plugins/unityshell/src/unityshell.cpp (+2/-2) |
To merge this branch: | bzr merge lp:~smspillaz/unity/unity.fix_1016789 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Approve | ||
Sam Spilsbury (community) | Abstain | ||
jenkins (community) | continuous-integration | Approve | |
Review via email: mp+111704@code.launchpad.net |
Commit message
Scale the generated fbo tex by the screen dimentions as its screen size
and ensure nux sets the reference viewport back to output size.
(LP: #1016789)
Description of the change
== Problem ==
See (LP: #1016789)
Output from the scratch fbo is scaled incorrectly in the multimonitor case when the items in question are above the shell - in this case, by a factor of screen size / output size. And also incorrectly in the blurs too, by the inverse. (built using USE_MODERN_
== Solution ==
Scale the generated fbo tex by the screen dimentions as its screen size
and ensure nux sets the reference viewport back to output size.
== Test ==
There is ongoing work to get the paint code under unit test (see lp:~smspillaz/unity/unity.less-paint-insanity). Until that's done, duplicating that here would effectively be redundant and as such there are no unit tests.
This work can be verified simply through manual testing the branch and ensuring blur and windows are "normally" scaled.
== Errata ==
When building lp:unity, I noticed that there are tons of very unrelated linker errors generated when turning USE_MODERN_
PASSED: Continuous integration, rev:2439 s-jenkins: 8080/job/ unity-ci/ 5/
http://