From Laurens Voerman, warning fixes
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14778 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
11f5039695
commit
53859bb3de
@ -92,7 +92,7 @@ unsigned char *exr_load(std::istream& fin,
|
|||||||
unsigned char *buffer=NULL; // returned to sender & as read from the disk
|
unsigned char *buffer=NULL; // returned to sender & as read from the disk
|
||||||
bool inputError = false;
|
bool inputError = false;
|
||||||
Array2D<Rgba> pixels;
|
Array2D<Rgba> pixels;
|
||||||
int width,height,numComponents;
|
int width=0,height=0,numComponents;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -111,6 +111,7 @@ unsigned char *exr_load(std::istream& fin,
|
|||||||
rgbafile.readPixels(dw.min.y, dw.max.y);
|
rgbafile.readPixels(dw.min.y, dw.max.y);
|
||||||
}
|
}
|
||||||
catch( char * str ) {
|
catch( char * str ) {
|
||||||
|
OSG_WARN << "exr_load error : " << str << std::endl;
|
||||||
inputError = true;
|
inputError = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -335,6 +336,7 @@ protected:
|
|||||||
}
|
}
|
||||||
catch( char * str )
|
catch( char * str )
|
||||||
{
|
{
|
||||||
|
OSG_WARN << "writeEXRStream error : " << str << std::endl;
|
||||||
writeOK = false;
|
writeOK = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user