Fixed warnings
This commit is contained in:
parent
79bc32ad7c
commit
2d901bf7ee
@ -232,7 +232,13 @@ void ProgramObject::dirtyShaderObjects()
|
||||
|
||||
void ProgramObject::releaseGLObjects(osg::State* state) const
|
||||
{
|
||||
const_cast<ProgramObject*>(this)->dirtyShaderObjects();
|
||||
|
||||
if (!state) const_cast<ProgramObject*>(this)->dirtyShaderObjects();
|
||||
else
|
||||
{
|
||||
unsigned int contextID = state->getContextID();
|
||||
const_cast<ProgramObject*>(this)->_shaderObjectList[contextID]->dirtyShaderObject();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1284,7 +1284,7 @@ osg::Group* ConvertFromFLT::visitObject(osg::Group& osgParent, ObjectRecord* rec
|
||||
std::string desc("flt object flags: 0x");
|
||||
char cflags[33];
|
||||
|
||||
sprintf( cflags, "%X", pSObject->dwFlags );
|
||||
sprintf( cflags, "%X", (unsigned int)pSObject->dwFlags );
|
||||
desc = desc + cflags;
|
||||
|
||||
object->getDescriptions().push_back( desc );
|
||||
|
@ -921,6 +921,8 @@ void* labelRead::Parse(trpgToken /*tok*/,trpgReadBuffer &buf)
|
||||
_parse->getCurrTop()->addChild(group);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
const std::vector<trpg3dPoint> *supports = label.GetSupports();
|
||||
|
Loading…
Reference in New Issue
Block a user