From 36d04bde5ff8613283a5ca0cfc28d9854eb0b417 Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 5 Dec 2016 11:32:29 +1300 Subject: GL_OES_texture_npot extensions checked As this is the extension used on ES hardware for non power of two texture support --- src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java b/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java index bede426..c6eb15f 100644 --- a/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java +++ b/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java @@ -7002,7 +7002,9 @@ class Jogl2es2Pipeline extends Jogl2es2DEPPipeline cv.anisotropicDegreeMax = tmp[0]; } - if (!VirtualUniverse.mc.enforcePowerOfTwo && gl.isExtensionAvailable("GL_ARB_texture_non_power_of_two")) + //Gles uses the GL_OES_texture_npot extension + if (!VirtualUniverse.mc.enforcePowerOfTwo && (gl.isExtensionAvailable("GL_ARB_texture_non_power_of_two") || + gl.isExtensionAvailable("GL_OES_texture_npot"))) { cv.textureExtendedFeatures |= Canvas3D.TEXTURE_NON_POWER_OF_TWO; } -- cgit v1.2.3