[osg-submissions] Fix for error in PrecipitationEffect.cpp
Raymond de Vries
reedev at xs4all.nl
Wed May 7 07:13:02 PDT 2008
Okay, and now via the official way... osg-submissions
Description:
This fix tests the right variable before it is allocated. Fortunately,
until now it tested another variable (_particleSizeUniform, which is, at
that moment, not allocated as well) and everything went ok. So it does
not fix a crash or so, it is a matter of correct code.
Line 353 is changed from
if (!_particleSizeUniform)
to
if (!_particleColorUniform)
Best regards
Raymond
Hehe, it sure is complex ;-)
I've attached the file with the very complex fix ;)
regards
Raymond
btw I thought to send it via osg-submissions first, but since it's such
a tiny fix I thought this channel would be fine too.
Robert Osfield wrote:
> On Wed, May 7, 2008 at 1:54 PM, Robert Osfield
> <robert.osfield at gmail.com> wrote:
>
>> Could you send me the complex modified file,
>>
>
> Oppss... I meant to write "complete modified file" ;-)
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PrecipitationEffect.cpp
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080507/9d023786/attachment-0001.txt>
More information about the osg-submissions
mailing list