Fixed compile warnings
This commit is contained in:
@@ -91,7 +91,7 @@ namespace osgFX
|
||||
|
||||
// stencil op
|
||||
osg::Stencil* stencil = new osg::Stencil;
|
||||
stencil->setFunction(osg::Stencil::ALWAYS, 1, ~0);
|
||||
stencil->setFunction(osg::Stencil::ALWAYS, 1, ~0u);
|
||||
stencil->setOperation(osg::Stencil::KEEP,
|
||||
osg::Stencil::KEEP,
|
||||
osg::Stencil::REPLACE);
|
||||
@@ -112,7 +112,7 @@ namespace osgFX
|
||||
|
||||
// stencil op
|
||||
osg::Stencil* stencil = new osg::Stencil;
|
||||
stencil->setFunction(osg::Stencil::NOTEQUAL, 1, ~0);
|
||||
stencil->setFunction(osg::Stencil::NOTEQUAL, 1, ~0u);
|
||||
stencil->setOperation(osg::Stencil::KEEP,
|
||||
osg::Stencil::KEEP,
|
||||
osg::Stencil::REPLACE);
|
||||
|
||||
@@ -103,7 +103,7 @@ bool StateSetManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapter& aa)
|
||||
(_stateset->getTextureMode(0,GL_TEXTURE_CUBE_MAP)&mode);
|
||||
|
||||
#if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE)
|
||||
_texture |= (_stateset->getTextureMode(0,GL_TEXTURE_1D)&mode);
|
||||
_texture |= ((_stateset->getTextureMode(0,GL_TEXTURE_1D)&mode)!=0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user