Re: [osg-users] [OpenGL ES] Bug in loading textures

2011-12-23 Thread Robert Osfield
Hi Hartwig, On 10 October 2011 10:56, Robert Osfield wrote: > Once you are happy with your solution could please post the full > source code files that you've changed to osg-submissions. Could you send me the complete files that you have modified so I can review them? I don't attempt to merge s

Re: [osg-users] [OpenGL ES] Bug in loading textures

2011-10-10 Thread Robert Osfield
Hi Hartwig, Once you are happy with your solution could please post the full source code files that you've changed to osg-submissions. Thanks, Robert. On Sat, Oct 8, 2011 at 11:50 AM, Hartwig Wiesmann wrote: > Hi, > > this is my patch for Texture::computeInternalFormatWithImage(...) replacing

Re: [osg-users] [OpenGL ES] Bug in loading textures

2011-10-08 Thread Hartwig Wiesmann
Hi, this is my patch for Texture::computeInternalFormatWithImage(...) replacing lines 1435 - 1442: Code: // GLES doesn't cope with some internal OpenGL formats so map them to the appropriate equivalents. #if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE) switch (internal

Re: [osg-users] [OpenGL ES] Bug in loading textures

2011-10-08 Thread Hartwig Wiesmann
Hi, just found out that I can also patch Texture::computeInternalFormatWithImage(const osg::Image&) const so that it returns valid OpenGL ES formats (in case OpenGL ES is used). Cheers, Hartwig -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=4326

[osg-users] [OpenGL ES] Bug in loading textures

2011-10-08 Thread Hartwig Wiesmann
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(),