GL_TEXTURE_RECTANGLE_ARB is not supported by older graphics cards
Rinum opened this issue · 4 comments
Older graphics card, specifically integrated graphics cards (Intel), don't support GL_TEXTURE_RECTANGLE_ARB
Replacing GL_TEXTURE_RECTANGLE_ARB with GL_TEXTURE_2D works
It works, but that means that the client can only load power of two textures. The GL_TEXTURE_RECTANGLE_ARB extension makes using NPOT textures possible.
To get the same for GL_TEXTURE_2D, you need to use gluScaleImage, to scale the image to POT, and then upload it to VRAM.
GL_TEXTURE_RECTANGLE_ARB won't work with osx since it doesn't have full support for opengl 3.
One: GL_TEXTURE_RECTANGLE_ARB is opengl 1.1
Two: In case the card/OS does not support the extension(very unlikely but not impossible, as we already have a person who encountered this) we use GL_TEXTURE_2D with scaling, resolving the issue.
Therefore, I'm closing this issue, since it's fixed and a non-issue on osx.