diff --git a/src/osgPlugins/flt/ReaderWriterFLT.cpp b/src/osgPlugins/flt/ReaderWriterFLT.cpp index 73874c1e9..56ea03c41 100644 --- a/src/osgPlugins/flt/ReaderWriterFLT.cpp +++ b/src/osgPlugins/flt/ReaderWriterFLT.cpp @@ -23,7 +23,7 @@ osgDB::ReaderWriter::ReadResult ReaderWriterFLT::readObject(const std::string& f osgDB::ReaderWriter::ReadResult ReaderWriterFLT::readNode(const std::string& fileName, const osgDB::ReaderWriter::Options*) { if( !acceptsExtension(osgDB::getFileExtension(fileName) )) - return ReadResult::FILE_NOT_HANDLED; + return ReadResult::FILE_NOT_HANDLED; osg::ref_ptr read = new FltFile; diff --git a/src/osgPlugins/png/ReaderWriterPNG.cpp b/src/osgPlugins/png/ReaderWriterPNG.cpp index 59ee8b143..c13dd1e8b 100644 --- a/src/osgPlugins/png/ReaderWriterPNG.cpp +++ b/src/osgPlugins/png/ReaderWriterPNG.cpp @@ -1,9 +1,10 @@ #include #include "osg/Notify" #include -#include "osg/GL" +#include -#include "osgDB/Registry" +#include +#include using namespace osg; @@ -35,6 +36,9 @@ class ReaderWriterPNG : public osgDB::ReaderWriter virtual ReadResult readImage(const std::string& fileName, const osgDB::ReaderWriter::Options*) { + if( !acceptsExtension(osgDB::getFileExtension(fileName) )) + return ReadResult::FILE_NOT_HANDLED; + int trans = PNG_ALPHA; FILE *fp = NULL; pngInfo pInfo;