Merge branch 'master' into shader_pipeline
This commit is contained in:
commit
10e1c29d2e
@ -208,7 +208,7 @@ void OSGCanvas::OnKeyUp(wxKeyEvent &event)
|
||||
// event.Skip() to allow processing to continue.
|
||||
}
|
||||
|
||||
void OSGCanvas::OnMouseEnter(wxMouseEvent &event)
|
||||
void OSGCanvas::OnMouseEnter(wxMouseEvent & /*event*/)
|
||||
{
|
||||
// Set focus to ourselves, so keyboard events get directed to us
|
||||
SetFocus();
|
||||
|
@ -234,7 +234,7 @@ class ReaderWriterPDF : public osgDB::ReaderWriter
|
||||
return readImage(file,options);
|
||||
}
|
||||
|
||||
virtual osgDB::ReaderWriter::ReadResult readImage(const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
|
||||
virtual osgDB::ReaderWriter::ReadResult readImage(const std::string& fileName, const osgDB::ReaderWriter::Options* /*options*/) const
|
||||
{
|
||||
if (!osgDB::equalCaseInsensitive(osgDB::getFileExtension(fileName),"pdf"))
|
||||
{
|
||||
|
@ -541,6 +541,7 @@ bool Texture_matchShadowTextureModeStr(const char* str,Texture::ShadowTextureMod
|
||||
if ( strcmp(str,"GL_LUMINANCE")==0) value = Texture::LUMINANCE;
|
||||
else if (strcmp(str,"GL_INTENSITY")==0) value = Texture::INTENSITY;
|
||||
else if (strcmp(str,"GL_ALPHA")==0) value = Texture::ALPHA;
|
||||
else if (strcmp(str,"GL_NONE")==0) value = Texture::NONE;
|
||||
else return false;
|
||||
|
||||
return true;
|
||||
@ -553,6 +554,7 @@ const char* Texture_getShadowTextureModeStr(Texture::ShadowTextureMode value)
|
||||
case( Texture::LUMINANCE ): return "GL_LUMINANCE";
|
||||
case( Texture::INTENSITY ): return "GL_INTENSITY";
|
||||
case( Texture::ALPHA ): return "GL_ALPHA";
|
||||
case( Texture::NONE ): return "GL_NONE";
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user