[Orxonox-commit 6070] r10728 - code/trunk/src/orxonox/graphics

landauf at orxonox.net landauf at orxonox.net
Sat Oct 31 11:33:08 CET 2015


Author: landauf
Date: 2015-10-31 11:33:08 +0100 (Sat, 31 Oct 2015)
New Revision: 10728

Modified:
   code/trunk/src/orxonox/graphics/Model.cc
Log:
disable LOD for MSVC and ogre version 1.8 because it leads to crashes

Modified: code/trunk/src/orxonox/graphics/Model.cc
===================================================================
--- code/trunk/src/orxonox/graphics/Model.cc	2015-10-31 10:06:37 UTC (rev 10727)
+++ code/trunk/src/orxonox/graphics/Model.cc	2015-10-31 10:33:08 UTC (rev 10728)
@@ -125,6 +125,9 @@
 
     void Model::enableLod()
     {
+#if defined(ORXONOX_COMPILER_MSVC) && OGRE_VERSION >= 0x010800 && OGRE_VERSION < 0x010900
+        // disable LOD for MSVC and ogre version 1.8 because it leads to crashes
+#else
         //LOD
         if( this->mesh_.getEntity()->getMesh()->getNumLodLevels()==1 )
         {
@@ -213,5 +216,6 @@
             else
                 orxout(verbose, context::lod) << "LodLevel for " << this->meshSrc_ << " not set because is disabled." << endl;
         }
+#endif
     }
 }




More information about the Orxonox-commit mailing list