[Plib-cvs] CVS: plib/src/ssg ssgLoadSGI.cxx,1.13,1.14
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-04-15 21:08:10
|
Update of /cvsroot/plib/plib/src/ssg In directory usw-pr-cvs1:/tmp/cvs-serv22071 Modified Files: ssgLoadSGI.cxx Log Message: Franz Melchior: In ssgSGIHeader constructor, set "loadSSG_bool" on failure Index: ssgLoadSGI.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadSGI.cxx,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- ssgLoadSGI.cxx 23 Mar 2002 15:06:45 -0000 1.13 +++ ssgLoadSGI.cxx 15 Apr 2002 21:06:14 -0000 1.14 @@ -265,9 +265,13 @@ leng = NULL ; bool success=openFile(fname); - - if(!success) return; - + + if ( !success ) + { + loadSGI_bool = false ; + return ; + } + GLubyte *image = new GLubyte [ sgihdr->xsize * sgihdr->ysize * sgihdr->zsize ] ; |