From Jannik Heller, "Here is a patch for the S3TC capability check.
From Jannik Heller, "Here is a patch for the S3TC capability check.

On a Intel HD graphics Linux system with Mesa 10.1.3, I found that osg's Extensions::isTextureCompressionS3TCSupported() returned false, even though S3TC compressed textures *are* in fact working. I tested this by loading and rendering various DXT1, DXT3 and DXT5 compressed textures in the OSG.

"glxinfo | grep s3tc" gives:
    GL_S3_s3tc

Note, if I install the package "libtxc-dxtn-s2tc0", I get in addition:

glxinfo | grep s3tc
    GL_EXT_texture_compression_s3tc
    GL_S3_s3tc

However, S3TC compressed textures worked correctly within the OSG even without libtxc-dxtn-s2tc0 installed.

I'm not sure what the differences between these extensions are, but based on the description at https://www.opengl.org/registry/specs/S3/s3tc.txt I would assume that both will work for OSG's purposes. The attached patch changes isTextureCompressionS3TCSupported() to accept either extension."


git-svn-id: aa838dfc23441284dd616281de4245daec5d2135@15035 16af8721-9629-0410-8352-f15c8da7e697

koshman86/osg,koshman86/osg,ghub/osg,artoolkit/osg,ntoand/osg,omega-hub/osg,koshman86/osg,ghub/osg,ghub/osg,artoolkit/osg,ghub/osg,ntoand/osg,omega-hub/osg,ntoand/osg,artoolkit/osg,omega-hub/osg,koshman86/osg,ntoand/osg,omega-hub/osg,artoolkit/osg