Merge pull request #3710 from JakubValtar/fx-matrix-stack

FX - fix transformation stack NPE
This commit is contained in:
Ben Fry
2015-08-24 18:28:36 -04:00

View File

@@ -1404,7 +1404,7 @@ public class PGraphicsFX2D extends PGraphics {
throw new RuntimeException("pushMatrix() cannot use push more than " +
transformStack.length + " times");
}
context.getTransform(transformStack[transformCount]);
transformStack[transformCount] = context.getTransform(transformStack[transformCount]);
transformCount++;
}