Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8439 for code/trunk/src


Ignore:
Timestamp:
May 9, 2011, 6:44:05 PM (14 years ago)
Author:
rgrieder
Message:

Fixed overlay drawing issue with CEGUI 0.7 (thx Crazy Eddie!).
You should now be able to see the console again in the main menu. Have fun ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/GUIManager.cc

    r8423 r8439  
    5959#  include <OgreCamera.h>
    6060#  include <OgreRenderQueueListener.h>
     61#  include <OgreRenderSystem.h>
     62#  include <OgreRoot.h>
    6163#  include <OgreSceneManager.h>
    6264#endif
     
    137139        {
    138140            if (id == Ogre::RENDER_QUEUE_OVERLAY && invocation.empty())
     141            {
    139142                CEGUI::System::getSingleton().renderGUI();
     143
     144                // Important workaround! (at least required by CEGUI 0.7.5)
     145                // If we don't reset the scissor test, OGRE will only render overlays
     146                // in the area where CEGUI last drew, which is usually nothing
     147                // or a little box where the focused element is.
     148                Ogre::Root::getSingleton().getRenderSystem()->setScissorTest(false);
     149            }
    140150        }
    141151    };
Note: See TracChangeset for help on using the changeset viewer.