Fixes for IRIX build - submitted by Randall Hopper.
This commit is contained in:
@@ -20,7 +20,7 @@ LDFLAGS = -O2 -n32 -LANG:std -OPT:Olimit=0
|
||||
$(C++) $(C++FLAGS) -c $<
|
||||
|
||||
DYNAMICLIBRARYLIB =
|
||||
PFLIBS = -lpfdu -lpfutil -lpf -limage
|
||||
PFLIBS = -L/usr/lib32/libpfdb -rpath /usr/lib32/libpfdb -lpfpfb -lpfdu -lpfutil -lpf -limage
|
||||
GLUTLIB = -lglut
|
||||
|
||||
#
|
||||
|
||||
@@ -596,7 +596,7 @@ void TmpGeoSet::setVertex(osg::GeoSet* gset, int index, Record* vertex)
|
||||
{
|
||||
osg::Vec4* colors = gset->getColors();
|
||||
ColorPool* pColorPool = _pFltFile->getColorPool();
|
||||
if (pColorPool && (pVert->color_index >= 0))
|
||||
if (pColorPool)
|
||||
colors[index] = pColorPool->getColor(pVert->color_index);
|
||||
else
|
||||
colors[index] = _appearance.getFaceColor();
|
||||
@@ -631,7 +631,7 @@ void TmpGeoSet::setVertex(osg::GeoSet* gset, int index, Record* vertex)
|
||||
{
|
||||
osg::Vec4* colors = gset->getColors();
|
||||
ColorPool* pColorPool = _pFltFile->getColorPool();
|
||||
if (pColorPool && (pVert->color_index >= 0))
|
||||
if (pColorPool)
|
||||
colors[index] = pColorPool->getColor(pVert->color_index);
|
||||
else
|
||||
colors[index] = _appearance.getFaceColor();
|
||||
|
||||
@@ -54,8 +54,8 @@ public:
|
||||
return osgDB::equalCaseInsensitive(extension,"flt");
|
||||
}
|
||||
|
||||
virtual osg::Object* readObject(const std::string& fileName, const ReaderWriter::Options*);
|
||||
virtual osg::Node* readNode(const std::string& fileName, const ReaderWriter::Options*);
|
||||
virtual osg::Object* readObject(const std::string& fileName, const osgDB::ReaderWriter::Options*);
|
||||
virtual osg::Node* readNode(const std::string& fileName, const osgDB::ReaderWriter::Options*);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -10,12 +10,7 @@ C++FILES = \
|
||||
|
||||
LIB = ../../../lib/osgPlugins/osgdb_pfb.so
|
||||
|
||||
LIBS = \
|
||||
/usr/lib/Performer/Static/libpfdb/libpfpfb.a\
|
||||
/usr/lib/Performer/Static/libpfdu.a\
|
||||
/usr/lib/Performer/Static/libpfutil.a\
|
||||
/usr/lib/Performer/Static/libpf.a\
|
||||
-losg -losgDB
|
||||
LIBS = -losg -losgDB $(PFLIBS)
|
||||
|
||||
TARGET_LOADER_FILES = osgPlugins/osgdb_pfb.so
|
||||
|
||||
|
||||
Reference in New Issue
Block a user