diff --git a/android/core/src/processing/opengl/PTexture.java b/android/core/src/processing/opengl/PTexture.java index 0212cadab..d9db47a0c 100644 --- a/android/core/src/processing/opengl/PTexture.java +++ b/android/core/src/processing/opengl/PTexture.java @@ -769,7 +769,7 @@ public class PTexture implements PConstants { pgl.glTexImage2D(glTarget, 0, glFormat, glWidth, glHeight, 0, PGL.GL_RGBA, PGL.GL_UNSIGNED_BYTE, null); // Makes sure that the texture buffer in video memory doesn't contain any garbage. - pgl.initTexture(glTarget, width, height, PGL.GL_RGBA, PGL.GL_UNSIGNED_BYTE); + pgl.initTexture(glTarget, PGL.GL_RGBA, width, height); pgl.glBindTexture(glTarget, 0); pgl.disableTexturing(glTarget); diff --git a/core/src/processing/core/PImage.java b/core/src/processing/core/PImage.java index 52a3112fc..d257e85ee 100644 --- a/core/src/processing/core/PImage.java +++ b/core/src/processing/core/PImage.java @@ -787,7 +787,7 @@ public class PImage implements PConstants, Cloneable { public void set(int x, int y, int c) { if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) return; pixels[y*width + x] = c; - updatePixelsImpl(x, y, x+1, y+1); // slow? + updatePixelsImpl(x, y, 1, 1); // slow? } @@ -847,7 +847,7 @@ public class PImage implements PConstants, Cloneable { srcOffset += src.width; dstOffset += width; } - updatePixelsImpl(sx, sy, sx+sw, sy+sh); + updatePixelsImpl(sx, sy, sw, sh); }