Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 8, 2009, 12:58:47 AM (16 years ago)
Author:
dafrick
Message:

Reverted to revision 2906 (because I'm too stupid to merge correctly, 2nd try will follow shortly. ;))

Location:
code/branches/questsystem5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem5

  • code/branches/questsystem5/src/orxonox/tools/Shader.cc

    r2907 r2908  
    3636#include <OgrePlugin.h>
    3737
    38 #include "core/GameMode.h"
     38#include "core/Core.h"
    3939#include "core/CoreIncludes.h"
    4040#include "core/Executor.h"
    41 #include "GraphicsManager.h"
     41#include "GraphicsEngine.h"
    4242#include "util/Exception.h"
    4343
     
    5959        this->compositorInstance_ = 0;
    6060        this->bVisible_ = true;
    61         this->bLoadCompositor_ = GameMode::showsGraphics();
     61        this->bLoadCompositor_ = Core::showsGraphics() && GraphicsEngine::getInstancePtr();
    6262        this->bViewportInitialized_ = false;
    6363        this->compositor_ = "";
     
    8686        if (this->bLoadCompositor_ && this->compositorInstance_)
    8787        {
    88             Ogre::Viewport* viewport = GraphicsManager::getInstance().getViewport();
     88            Ogre::Viewport* viewport = GraphicsEngine::getInstance().getViewport();
    8989            assert(viewport);
    9090            Ogre::CompositorManager::getSingleton().removeCompositor(viewport, this->compositor_);
     
    114114        if (this->bLoadCompositor_)
    115115        {
    116             Ogre::Viewport* viewport = GraphicsManager::getInstance().getViewport();
     116            Ogre::Viewport* viewport = GraphicsEngine::getInstance().getViewport();
    117117            assert(viewport);
    118118            if (this->oldcompositor_ != "")
     
    246246    Shader::ParameterPointer* Shader::getParameterPointer(const std::string& material, size_t technique, size_t pass, const std::string& parameter)
    247247    {
    248         if (!GameMode::showsGraphics() || !Shader::bLoadedCgPlugin_s)
     248        if (!Core::showsGraphics() || !Shader::bLoadedCgPlugin_s)
    249249            return 0;
    250250
Note: See TracChangeset for help on using the changeset viewer.