Fixed shadows warnigns
This commit is contained in:
@@ -59,8 +59,8 @@ void ConvexPlanarOccluder::read(DataInputStream* in){
|
||||
// Read ConvexPlanarOccluder's properties
|
||||
|
||||
// Read planar polygon occluder.
|
||||
osg::ConvexPlanarPolygon* cpp = &getOccluder();
|
||||
((ive::ConvexPlanarPolygon*)(cpp))->read(in);
|
||||
osg::ConvexPlanarPolygon* occluder = &getOccluder();
|
||||
((ive::ConvexPlanarPolygon*)(occluder))->read(in);
|
||||
|
||||
// Read hole list.
|
||||
int size = in->readInt();
|
||||
|
||||
@@ -59,9 +59,9 @@ void Image::write(DataOutputStream* out)
|
||||
out->writeInt(getModifiedCount());
|
||||
|
||||
// Write mipmapdata vector
|
||||
int size = _mipmapData.size();
|
||||
out->writeInt(size);
|
||||
for(int i=0;i<size;i++)
|
||||
int mipmapsize = _mipmapData.size();
|
||||
out->writeInt(mipmapsize);
|
||||
for(int i=0;i<mipmapsize;i++)
|
||||
out->writeInt(_mipmapData[i]);
|
||||
|
||||
// Write image data if any
|
||||
|
||||
@@ -155,10 +155,10 @@ void ProxyNode::read(DataInputStream* in)
|
||||
// Read ProxyNode's identification.
|
||||
id = in->readInt();
|
||||
// If the osg class is inherited by any other class we should also read this from file.
|
||||
osg::Node* node = dynamic_cast<osg::Node*>(this);
|
||||
if(node)
|
||||
osg::Node* nodePtr = dynamic_cast<osg::Node*>(this);
|
||||
if(nodePtr)
|
||||
{
|
||||
((ive::Node*)(node))->read(in);
|
||||
((ive::Node*)(nodePtr))->read(in);
|
||||
}
|
||||
else
|
||||
in_THROW_EXCEPTION("ProxyNode::read(): Could not cast this osg::ProxyNode to an osg::Node.");
|
||||
|
||||
Reference in New Issue
Block a user