Re: [Crystal-cvs] SF.net SVN: crystal:[39955] CS/trunk/libs/csplugincommon/rendermanager/ occluvis.cpp

Vincent Knecht <[email protected]> Mon, 13 Jan 2014 01:02:33 +0100
Newsgroups gmane.comp.graphics.crystalspace.devel
Message-ID <1389571353.3154.7.camel__37083.2685301595$1389571385$gmane$org@omnius>
Le dimanche 12 janvier 2014 à 17:38 +0000,
[email protected] a écrit :
> Revision: 39955
>           http://sourceforge.net/p/crystal/code/39955
> Author:   ralphcampbell
> Date:     2014-01-12 17:38:28 +0000 (Sun, 12 Jan 2014)
> Log Message:
> -----------
> Fix segmentation fault in deferreddemo
> 
> Modified Paths:
> --------------
>     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
>        // @@@RlyDontKnow: how does this happen if it does at all?
> -      CS_ASSERT(nodeMeshLists);
> +      // It happens when you run deferreddemo.
> +      //CS_ASSERT(nodeMeshLists);
> +      if (!nodeMeshLists)
> +        return false;
>  
>        // disable frame buffer writes
>        // @@@NOTE: this may be overwritten by shaders

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.



------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Crystal-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-develop