modules/graphics/src/main/java/com/sun/prism/es2/ES2ResourceFactory.java
Print this page
*** 99,108 ****
--- 99,125 ----
@Override
public boolean isCompatibleTexture(Texture tex) {
return tex instanceof ES2Texture;
}
+ @Override
+ protected boolean canClampToZero() {
+ return context.getGLContext().canClampToZero();
+ }
+
+ @Override
+ protected boolean canRepeat() {
+ // Actually, this depends on the size. It works for pow2 textures...
+ return context.getGLContext().canCreateNonPowTwoTextures();
+ }
+
+ @Override
+ protected boolean canClampToEdge() {
+ // Actually, this depends on the size. It works for pow2 textures...
+ return context.getGLContext().canCreateNonPowTwoTextures();
+ }
+
public Texture createTexture(PixelFormat formatHint,
Usage usageHint,
WrapMode wrapMode,
int w, int h)
{