Hi,
Texture::applyTexImage2D_load (...) calls in case of mipmapping for
uncompressed images (file Texture.cpp line 1931 of the source code in trunk)
Code:
glTexImage2D( target, 0, _internalFormat,
inwidth, inheight, _borderWidth,
(GLenum)image->getPixelFormat(),
(GLenum)image->getDataType(),
dataPtr);
In OpenGL ES the internal format and the pixel format have to have the same
value otherwise an invalid operation error is raised. Equivalent formats are
not supported like in standard OpenGL.
Therefore an internal format of GL_RGBA8 and a pixel format of GL_RGBA will
lead to an invalid operation error.
I have solved this bug by adding a mapping function in this particular case.
Afterwards I found out that this bug can occur at several other places
(probably also with other functions than glTexImage2D).
I am willing to submit a path but then I would like to know where to put the
mapping function.
Cheers,
Hartwig
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43266#43266
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org