Merge lp:~vanvugt/unity/fix-1037949-1036528 into lp:unity

Proposed by Daniel van Vugt
Status: Merged
Approved by: Tim Penhey
Approved revision: no longer in the source branch.
Merged at revision: 2593
Proposed branch: lp:~vanvugt/unity/fix-1037949-1036528
Merge into: lp:unity
Diff against target: 23 lines (+3/-1)
1 file modified
plugins/unityshell/src/unityshell.cpp (+3/-1)
To merge this branch: bzr merge lp:~vanvugt/unity/fix-1037949-1036528
Reviewer Review Type Date Requested Status
Sam Spilsbury (community) Approve
Review via email: mp+120081@code.launchpad.net

Commit message

Don't comment out the nuxPrologue/Epilogue functions if building
USE_MODERN_COMPIZ_GL. They are critical functions and commenting them out
causes serious rendering bugs: (LP: #1036528) (LP: #1037949)

Description of the change

Don't comment out the nuxPrologue/Epilogue functions if building
USE_MODERN_COMPIZ_GL. They are critical functions and commenting them out
causes serious rendering bugs: (LP: #1036528) (LP: #1037949)

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes, I am assuming we don't yet care about supporting multi-monitor or the Benchmark plugin on ARM/GLES systems. Yet...

If we do want to support those in future then nuxPrologue/Epilogue will need to be replaced with something else.

Revision history for this message
Sam Spilsbury (smspillaz) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugins/unityshell/src/unityshell.cpp'
--- plugins/unityshell/src/unityshell.cpp 2012-08-16 13:35:30 +0000
+++ plugins/unityshell/src/unityshell.cpp 2012-08-17 08:50:57 +0000
@@ -479,7 +479,7 @@
479479
480void UnityScreen::nuxPrologue()480void UnityScreen::nuxPrologue()
481{481{
482#ifndef USE_MODERN_COMPIZ_GL482#ifndef USE_GLES
483 /* Vertex lighting isn't used in Unity, we disable that state as it could have483 /* Vertex lighting isn't used in Unity, we disable that state as it could have
484 * been leaked by another plugin. That should theoretically be switched off484 * been leaked by another plugin. That should theoretically be switched off
485 * right after PushAttrib since ENABLE_BIT is meant to restore the LIGHTING485 * right after PushAttrib since ENABLE_BIT is meant to restore the LIGHTING
@@ -512,8 +512,10 @@
512512
513void UnityScreen::nuxEpilogue()513void UnityScreen::nuxEpilogue()
514{514{
515#ifndef USE_GLES
515#ifndef USE_MODERN_COMPIZ_GL516#ifndef USE_MODERN_COMPIZ_GL
516 (*GL::bindFramebuffer)(GL_FRAMEBUFFER_EXT, _active_fbo);517 (*GL::bindFramebuffer)(GL_FRAMEBUFFER_EXT, _active_fbo);
518#endif
517519
518 glMatrixMode(GL_PROJECTION);520 glMatrixMode(GL_PROJECTION);
519 glLoadIdentity();521 glLoadIdentity();