Discussion:
[Crystal-develop] [Crystal-cvs] SF.net SVN: crystal:[39955] CS/trunk/libs/csplugincommon/rendermanager/ occluvis.cpp
Vincent Knecht
2014-01-13 00:02:33 UTC
Permalink
Le dimanche 12 janvier 2014 à 17:38 +0000,
Revision: 39955
http://sourceforge.net/p/crystal/code/39955
Author: ralphcampbell
Date: 2014-01-12 17:38:28 +0000 (Sun, 12 Jan 2014)
-----------
Fix segmentation fault in deferreddemo
--------------
CS/trunk/libs/csplugincommon/rendermanager/occluvis.cpp
Modified: CS/trunk/libs/csplugincommon/rendermanager/occluvis.cpp
===================================================================
--- CS/trunk/libs/csplugincommon/rendermanager/occluvis.cpp 2014-01-12 17:25:46 UTC (rev 39954)
+++ CS/trunk/libs/csplugincommon/rendermanager/occluvis.cpp 2014-01-12 17:38:28 UTC (rev 39955)
@@ -1046,7 +1046,10 @@
// we cannot render without a mesh list
- CS_ASSERT(nodeMeshLists);
+ // It happens when you run deferreddemo.
+ //CS_ASSERT(nodeMeshLists);
+ if (!nodeMeshLists)
+ return false;
// disable frame buffer writes
Just a note : this happens when running deferreddemo with default map
(castle) but when loading another map (island iirc) it doesn't trigger
the assert although the output still seemed empty/useless.
Didn't took time to report that earlier, sorry.

Loading...