i have a problem regarding the extension GL_TEXTURE_2D_ARRAY_EXT. I need to clamp my textures which i added to an GL_TEXTURE_2D_ARRAY to the border so i definded the GL_TEXTURE_WRAP T and S to CLAMP_TO_BORDER:
glTexParameterf(GL_TEXTURE_2D_ARRAY_EXT, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER);
glTexParameterf(GL_TEXTURE_2D_ARRAY_EXT, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER);
But this does not work with ati cards/drivers. Nvidia cards/drivers work just fine. I tested ATI 4850 and 4890.
I known this is an driver issue but i need to find a workaround for this problem.
An example source code file can be downloaded here:
You can switch from GL_TEXTURE_2D to GL_TEXTURE_2D_ARRAY by enabling or disabling: #define NOARRAY
Here can you see that the clamping is not applied when texture arrays are used:
In contrast to clamping when texture_2d’s are used:
I need to clamp those texture to add them next to each other onto the same object by using different texture coordinated. Imagine a Chessboard where each field is a unique texture. If clamping to border would work each texture would only cover it own ‘field’. But since this does not work and i do need texture arrays i need to find a solution.