Hi, in Texture.cpp there are two bugs when using OpenGL ES (tested using iOS 5.x):
1) Unsupported texture format GL_RGB(A)8 does not exist under OpenGL ES but the equivalents GL_RGB(A)_OES. When images have this internal data format the internal data format is also used in the variable _internalFormat. When passing _internalFormat containing GL_RGB(A)_OES to glTexImage2D the command fails. FIX: the modified Texture.cpp file converts in Texture::computeInternalFormatWithImage the mentioned image formats from GL_RGB(A)_OES to GL_RGB(A). 2) Texture::mipmapBeforeTexImage calls wrong mipmapping function In Texture::mipmapBeforeTexImage the wrong mipmapping function can be called if OSG_GLES1_AVAILABLE is set. FIX: Texture::mipmapBeforeTexImage checks if the extension GL_SGIS_generate_mipmap is available. Modified Texture.cpp file is attached. Cheers, Hartwig ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46873#46873 Attachments: http://forum.openscenegraph.org//files/texture_114.cpp _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
