matrix transformations in PShapeOpenGL are stored even when the shape is not ended yet.

This commit is contained in:
codeanticode
2012-05-30 15:31:10 +00:00
parent aaa4311049
commit 98b5655213
@@ -1715,10 +1715,8 @@ public class PShapeOpenGL extends PShape {
public void applyMatrix(PMatrix2D source) {
transform(MATRIX, source.m00, source.m01, 0, source.m02,
source.m10, source.m11, 0, source.m12,
0, 0, 1, 0,
0, 0, 0, 1);
transform(MATRIX, source.m00, source.m01, source.m02,
source.m10, source.m11, source.m12);
}
@@ -1772,13 +1770,11 @@ public class PShapeOpenGL extends PShape {
protected void transformImpl(int type, int ncoords, float... args) {
if (shapeEnded) {
checkMatrix(ncoords);
calcTransform(type, ncoords, args);
if (tessellated) {
applyMatrixImpl(transform);
}
}
checkMatrix(ncoords);
calcTransform(type, ncoords, args);
if (tessellated) {
applyMatrixImpl(transform);
}
}