[Orxonox-commit 959] r5682 - code/branches/resource2/src/core

rgrieder at orxonox.net rgrieder at orxonox.net
Tue Aug 25 18:53:13 CEST 2009


Author: rgrieder
Date: 2009-08-25 18:53:13 +0200 (Tue, 25 Aug 2009)
New Revision: 5682

Modified:
   code/branches/resource2/src/core/GraphicsManager.cc
Log:
Bugfix (probably for the OpenGL renderer only).

Modified: code/branches/resource2/src/core/GraphicsManager.cc
===================================================================
--- code/branches/resource2/src/core/GraphicsManager.cc	2009-08-25 15:59:10 UTC (rev 5681)
+++ code/branches/resource2/src/core/GraphicsManager.cc	2009-08-25 16:53:13 UTC (rev 5682)
@@ -45,6 +45,7 @@
 #include <OgreRenderWindow.h>
 #include <OgreRenderSystem.h>
 #include <OgreResourceGroupManager.h>
+#include <OgreTextureManager.h>
 #include <OgreViewport.h>
 #include <OgreWindowEventUtilities.h>
 
@@ -259,6 +260,8 @@
         //       no ScopeGuards or anything to handle exceptions.
         this->viewport_ = this->renderWindow_->addViewport(0, 0);
 
+        Ogre::TextureManager::getSingleton().setDefaultNumMipmaps(0);
+
         // add console commands
         FunctorMember<GraphicsManager>* functor1 = createFunctor(&GraphicsManager::printScreen);
         ccPrintScreen_ = createConsoleCommand(functor1->setObject(this), "printScreen");




More information about the Orxonox-commit mailing list