We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a201a71 commit bf58dc1Copy full SHA for bf58dc1
core/src/processing/core/PImage.java
@@ -840,7 +840,6 @@ public void mask(int[] maskArray) { // ignore
840
*/
841
public void mask(PImage img) {
842
img.loadPixels();
843
- this.loadPixels();
844
if (this.pixelWidth != img.pixelWidth || this.pixelHeight != img.pixelHeight) {
845
if (this.pixelDensity != img.pixelDensity) {
846
throw new IllegalArgumentException("mask() requires the mask image to have the same pixel size after adjusting for pixelDensity.");
0 commit comments