Hi all,

here is a workaround for osg. It disables the chrome shader, but as long as this causes the fatal crashes we need to commit.

Unfortunately I am not compiling osg myself; I am using Olafs precompiled library. Therefore I can not dig into the code :-(

Maik



Maik Justus schrieb am 26.01.2007 18:48:
Hi Fred,

Frederic Bouvier schrieb am 26.01.2007 10:02:
Hi Maik,

Selon Maik Justus :
_condition, _effectTexture and _textureData are not SGShaderAnimation members in
the OSG code.

In the PLIB branch, _contition is not shared but initialized with new in
sgReadCondition, so unless there is something I am missing, I think _condition
must be deleted just like in the other animation classes where it is actually
missing ( except in shadow and select ).
you are right. Maybe it was a bit too late yesterday.

for _effectTexture, the pointer should be replaced by ssgSharedPtr<ssgTexture>
and the delete removed.

I am committing a fix right now.

-Fred

Thanks! Has anyone still crashes with the fixed plib version? We now need to investigate, why fg-osg crahsed at the same condions. Maybe there is a similar bug?
Maik

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Index: shadanim.cxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/source/simgear/scene/model/shadanim.cxx,v
retrieving revision 1.9
diff -u -p -r1.9 shadanim.cxx
--- shadanim.cxx        3 Dec 2006 16:57:21 -0000       1.9
+++ shadanim.cxx        26 Jan 2007 19:00:33 -0000
@@ -194,7 +194,7 @@ SGShaderAnimation::createAnimationGroup(
 //   else if( shader_name == "heat-haze" )
 //     _shader_type = 2;
 //   else
-  if( shader_name == "chrome")
+  if( 0 && shader_name == "chrome")
     create_specular_highlights(group);
 
   return group;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to