The OpenGL call: gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE)
has got as 3rd parameter an extension. 3dlabs’ Ogl-manpage names it GL_CLAMP_TO_EDGE_EXT
However, JOGL for example just names it GL.GL_CLAMP_TO_EDGE .
The official Ogl extension registry says the extension which provides this parameter is: GL_SGIS_texture_edge_clamp
So, as usual with extensions, I guess I’ve to ask the Ogl context if this extension is available at runtime:
gl.isExtensionAvailable(“GL_SGIS_texture_edge_clamp”);
In case it is, I use the GL_CLAMP_TO_EDGE parameter, otherwise I fall back to normal GL_CLAMP ?
Two questions:
-
Is this the correct approach to the parameter? Or is it safe to always use it without asking?
-
In case asking is neccessary: how many 3d cards actually support it? I am asking because it’s no ARB_ or EXT_ extension but some SGIS_ …
Still, my ATI 3d card supports this extension, so I guess Nvidia does it, too?