GLRenderer: support limited NPOT on iOS
See this: https://www.khronos.org/registry/gles/extensions/APPLE/APPLE_texture_2D_limited_npot.txt Note that NPOT is still not available on cubemaps or 3D textures, however this is fairly uncommon.
This commit is contained in:
parent
331e71f261
commit
f0998d14d0
@ -343,6 +343,7 @@ public class GLRenderer implements Renderer {
|
||||
|
||||
if (hasExtension("GL_ARB_texture_non_power_of_two") ||
|
||||
hasExtension("GL_OES_texture_npot") ||
|
||||
hasExtension("GL_APPLE_texture_2D_limited_npot") ||
|
||||
caps.contains(Caps.OpenGL30)) {
|
||||
caps.add(Caps.NonPowerOfTwoTextures);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user