[Orxonox-commit 958] r5681 - code/branches/resource3/src/core

rgrieder at orxonox.net rgrieder at orxonox.net
Tue Aug 25 17:59:11 CEST 2009


Author: rgrieder
Date: 2009-08-25 17:59:10 +0200 (Tue, 25 Aug 2009)
New Revision: 5681

Modified:
   code/branches/resource3/src/core/GraphicsManager.cc
Log:
@Oli: Try this. I previously removed a call to the texture manager setting the default number of mipmaps to 0 because according to the documentation, 0 already is the default value.
Anyway, I really haven't found anything else that doesn't concern exception handling or shutdown.

Modified: code/branches/resource3/src/core/GraphicsManager.cc
===================================================================
--- code/branches/resource3/src/core/GraphicsManager.cc	2009-08-25 11:57:34 UTC (rev 5680)
+++ code/branches/resource3/src/core/GraphicsManager.cc	2009-08-25 15:59:10 UTC (rev 5681)
@@ -45,6 +45,7 @@
 #include <OgreException.h>
 #include <OgreRenderWindow.h>
 #include <OgreRenderSystem.h>
+#include <OgreTextureManager.h>
 #include <OgreViewport.h>
 #include <OgreWindowEventUtilities.h>
 
@@ -282,6 +283,8 @@
 
         Ogre::WindowEventUtilities::addWindowEventListener(this->renderWindow_, ogreWindowEventListener_.get());
 
+        Ogre::TextureManager::getSingleton().setDefaultNumMipmaps(0);
+
         // create a full screen default viewport
         // Note: This may throw when adding a viewport with an existing z-order!
         //       But in our case we only have one viewport for now anyway, therefore




More information about the Orxonox-commit mailing list