Fixes for warnings
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14736 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
23b76599bd
commit
d03b38dea8
@ -156,7 +156,7 @@ void getPossibleConfigs(GraphicsContext* gc, BufferConfigList& colorConfigs,
|
|||||||
bool checkFramebufferStatus(GraphicsContext* gc, bool silent = false)
|
bool checkFramebufferStatus(GraphicsContext* gc, bool silent = false)
|
||||||
{
|
{
|
||||||
State& state = *gc->getState();
|
State& state = *gc->getState();
|
||||||
osg::GLExtensions* ext = gc->getState()->get<GLExtensions>();
|
osg::GLExtensions* ext = state.get<GLExtensions>();
|
||||||
switch(ext->glCheckFramebufferStatus(GL_FRAMEBUFFER_EXT)) {
|
switch(ext->glCheckFramebufferStatus(GL_FRAMEBUFFER_EXT)) {
|
||||||
case GL_FRAMEBUFFER_COMPLETE_EXT:
|
case GL_FRAMEBUFFER_COMPLETE_EXT:
|
||||||
break;
|
break;
|
||||||
|
@ -1847,14 +1847,14 @@ std::string State::getDefineString(const osg::ShaderDefines& shaderDefines)
|
|||||||
const StateSet::DefinePair& dp = cd_itr->second;
|
const StateSet::DefinePair& dp = cd_itr->second;
|
||||||
shaderDefineStr += "#define ";
|
shaderDefineStr += "#define ";
|
||||||
shaderDefineStr += cd_itr->first;
|
shaderDefineStr += cd_itr->first;
|
||||||
if (cd_itr->second.first.empty())
|
if (dp.first.empty())
|
||||||
{
|
{
|
||||||
shaderDefineStr += "\n";
|
shaderDefineStr += "\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
shaderDefineStr += " ";
|
shaderDefineStr += " ";
|
||||||
shaderDefineStr += cd_itr->second.first;
|
shaderDefineStr += dp.first;
|
||||||
shaderDefineStr += "\n";
|
shaderDefineStr += "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user