aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorphil <[email protected]>2016-12-05 11:32:29 +1300
committerphil <[email protected]>2016-12-05 11:32:29 +1300
commit36d04bde5ff8613283a5ca0cfc28d9854eb0b417 (patch)
treeb18028e5a18cfc17d1ecfbec4a6aaf6f8883d599 /src
parent0c9283835e3ba4ca2363334aa11f35aa613f0087 (diff)
GL_OES_texture_npot extensions checked
As this is the extension used on ES hardware for non power of two texture support
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java4
1 files changed, 3 insertions, 1 deletions
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;
}