warning fixes
This commit is contained in:
@@ -512,7 +512,7 @@ ModelRegistry::readNode(const string& fileName,
|
||||
ScopedLock<ReentrantMutex> lock(readerMutex);
|
||||
|
||||
// XXX Workaround for OSG plugin bug.
|
||||
Registry* registry = Registry::instance();
|
||||
// Registry* registry = Registry::instance();
|
||||
ReaderWriter::ReadResult res;
|
||||
CallbackMap::iterator iter
|
||||
= nodeCallbackMap.find(getFileExtension(fileName));
|
||||
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
using namespace osg;
|
||||
using namespace osgDB;
|
||||
using osgDB::ReaderWriter;
|
||||
Registry* registry = Registry::instance();
|
||||
// Registry* registry = Registry::instance();
|
||||
ref_ptr<osg::Node> optimizedNode = _cachePolicy.find(fileName, opt);
|
||||
if (!optimizedNode.valid()) {
|
||||
std::string otherFileName = _substitutePolicy.substitute(fileName,
|
||||
|
||||
@@ -347,7 +347,7 @@ struct DoDrawArraysVisitor : public osg::NodeVisitor {
|
||||
using namespace osg;
|
||||
using namespace std;
|
||||
|
||||
for (int i = 0; i < geode.getNumDrawables(); ++i)
|
||||
for (int i = 0; i < (int)geode.getNumDrawables(); ++i)
|
||||
geode.getDrawable(i)->setUseDisplayList(false);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -132,6 +132,7 @@ private:
|
||||
|
||||
static Mutex cubeMutex;
|
||||
|
||||
#if 0
|
||||
static osg::TextureCubeMap*
|
||||
getOrCreateTextureCubeMap()
|
||||
{
|
||||
@@ -181,6 +182,7 @@ static void create_specular_highlights(osg::Node *node)
|
||||
te->setOperand1_RGB(osg::TexEnvCombine::SRC_COLOR);
|
||||
ss->setTextureAttributeAndModes(0, te, osg::StateAttribute::OVERRIDE | osg::StateAttribute::ON);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
SGShaderAnimation::SGShaderAnimation(const SGPropertyNode* configNode,
|
||||
|
||||
Reference in New Issue
Block a user