diff --git a/core/src/processing/core/PConstants.java b/core/src/processing/core/PConstants.java index 3e2a05b29..bff1bec8d 100644 --- a/core/src/processing/core/PConstants.java +++ b/core/src/processing/core/PConstants.java @@ -444,6 +444,7 @@ public interface PConstants { public static final int BILINEAR = 3; /** This constant identifies the linear/linear function to build mipmaps */ public static final int TRILINEAR = 4; + /** This constant identifies the clamp-to-edge wrapping mode */ public static final int CLAMP = 0; /** This constant identifies the repeat wrapping mode */ diff --git a/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java b/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java index 44f5ff70b..adda393d1 100644 --- a/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java +++ b/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java @@ -5183,6 +5183,8 @@ public class PGraphicsOpenGL extends PGraphics { PTexture.Parameters params = (PTexture.Parameters)img.getParams(pgPrimary); if (params == null) { params = PTexture.newParameters(); + params.wrapU = textureWrap; + params.wrapV = textureWrap; img.setParams(pgPrimary, params); } if (img.parent == null) {