From Wang Rui, "A very small but maybe fatal problem was found when I saved models with shader and uniforms (with new double types support) to osgb format and tried to read it again. The application will crash here. And the serializer file should be slightly changed to fix it. Please replace the original file in osgWrappers/serializers/osg/Uniform.cpp."
This commit is contained in:
parent
1dbb0a7a82
commit
2200ebfbe1
@ -37,7 +37,7 @@ static bool writeElements( osgDB::OutputStream& os, const osg::Uniform& uniform
|
||||
os << (uniform.getFloatArray()!=NULL);
|
||||
os.writeArray( uniform.getFloatArray() );
|
||||
}
|
||||
if ( uniform.getDoubleArray()!=NULL )
|
||||
else if ( uniform.getDoubleArray()!=NULL )
|
||||
{
|
||||
os << (uniform.getDoubleArray()!=NULL);
|
||||
os.writeArray( uniform.getDoubleArray() );
|
||||
|
Loading…
Reference in New Issue
Block a user