mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
textureMode(REPEAT) throws an error (#2052)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user