diff --git a/src/osgPlugins/Inventor/ConvertFromInventor.cpp b/src/osgPlugins/Inventor/ConvertFromInventor.cpp index 9ea721e21..21b508fe6 100644 --- a/src/osgPlugins/Inventor/ConvertFromInventor.cpp +++ b/src/osgPlugins/Inventor/ConvertFromInventor.cpp @@ -1143,7 +1143,7 @@ void ConvertFromInventor::addPointCB(void* data, SoCallbackAction* action, } ////////////////////////////////////////////////////////////////////// void ConvertFromInventor::_setVRMLImageTexture(const SoVRMLImageTexture* vit, - SoCallbackAction* /*action*/) + SoCallbackAction* action) { _hasVRMLImageTexture = true; ///Coin API to extract VRML97 ImageTexture @@ -1184,7 +1184,7 @@ void ConvertFromInventor::_setVRMLImageTexture(const SoVRMLImageTexture* vit, }; osg::ref_ptr image = new osg::Image(); - image->setImage(dimensions[0], dimensions[1], 0, nComponents, + image->setImage(dimensions[0], dimensions[1], 1, nComponents, format, GL_UNSIGNED_BYTE, const_cast(data), osg::Image::USE_NEW_DELETE);