textureMode(REPEAT) throws an error (#2052)

This commit is contained in:
Ben Fry
2013-10-11 20:37:19 -04:00
parent c1b076ba07
commit f7dc181bbe
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -1224,6 +1224,9 @@ public class PGraphics extends PImage implements PConstants {
* @see PGraphics#textureWrap(int)
*/
public void textureMode(int mode) {
if (mode != IMAGE && mode != NORMAL) {
throw new RuntimeException("textureMode() only supports IMAGE and NORMAL");
}
this.textureMode = mode;
}
+2
View File
@@ -36,6 +36,8 @@ X child SVG elements misplaced when rendering with P2D/P3D
X https://github.com/processing/processing/issues/2086
X SUBTRACT and DIFFERENCE blend modes are swapped
X https://github.com/processing/processing/issues/2075
X throw an error for textureMode(REPEAT) [fry]
X https://github.com/processing/processing/issues/2052
_ Sort out blending differences with P2D/P3D
_ https://github.com/processing/processing/issues/1844