Merge lp:~vanvugt/mir/fix-1672269 into lp:mir
Proposed by
Daniel van Vugt
Status: | Merged |
---|---|
Approved by: | Daniel van Vugt |
Approved revision: | no longer in the source branch. |
Merged at revision: | 4101 |
Proposed branch: | lp:~vanvugt/mir/fix-1672269 |
Merge into: | lp:mir |
Diff against target: |
111 lines (+65/-1) 3 files modified
src/renderers/gl/renderer.cpp (+12/-1) src/renderers/gl/renderer.h (+2/-0) tests/unit-tests/renderers/gl/test_gl_renderer.cpp (+51/-0) |
To merge this branch: | bzr merge lp:~vanvugt/mir/fix-1672269 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mir CI Bot | continuous-integration | Approve | |
Alan Griffiths | Approve | ||
Alexandros Frantzis (community) | Approve | ||
Review via email: mp+320463@code.launchpad.net |
Commit message
Remember the glViewport calculation can change as a result of a
new output transformation (rotation) and not just a change in the
viewport rectangle. (LP: #1672269)
Description of the change
Technically the rotation does change the rectangle by transposing its
dimenions, however in LP: #1672269 this fact doesn't help because the
mode change has reconstructed the renderer with the newly transposed
dimensions before ever notifying there is an output transformation. So
the second set_viewport call that should have triggered glViewport
bailed out early thinking nothing had changed. But now we do it as
early (and seldom) as possible in both functions to cover all bases.
To post a comment you must log in.
PASSED: Continuous integration, rev:4100 /mir-jenkins. ubuntu. com/job/ mir-ci/ 3203/ /mir-jenkins. ubuntu. com/job/ build-mir/ 4307 /mir-jenkins. ubuntu. com/job/ build-0- fetch/4394 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= vivid+overlay/ 4384 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= xenial+ overlay/ 4384 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= zesty/4384 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= clang,platform= mesa,release= zesty/4339 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= clang,platform= mesa,release= zesty/4339/ artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial+ overlay/ 4339 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial+ overlay/ 4339/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= zesty/4339 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= zesty/4339/ artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 4339 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 4339/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 4339 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 4339/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial+ overlay/ 4339 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial+ overlay/ 4339/artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /mir-jenkins. ubuntu. com/job/ mir-ci/ 3203/rebuild
https:/