Skip to content

Commit 99d724c

Browse files
committed
oops
1 parent 08a0930 commit 99d724c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main/java/processing/opengl/PShapeOpenGL.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ public void rotateY(float angle) {
12691269

12701270
@Override
12711271
public void rotateZ(float angle) {
1272-
transform(angle, 0, 0, 1);
1272+
rotate(angle, 0, 0, 1);
12731273
}
12741274

12751275

@@ -2545,6 +2545,8 @@ public int getVertexCodeCount() {
25452545

25462546
/**
25472547
* One of VERTEX, BEZIER_VERTEX, CURVE_VERTEX, or BREAK.
2548+
* @param index
2549+
* @return
25482550
*/
25492551
@Override
25502552
public int getVertexCode(int index) {
@@ -3979,14 +3981,14 @@ protected void initPolyBuffers() {
39793981
pgl.bufferData(PGL.ARRAY_BUFFER, sizef,
39803982
tessGeo.polyShininessBuffer, glUsage);
39813983

3982-
for (String name: polyAttribs.keySet()) {
3984+
polyAttribs.keySet().forEach((name) -> {
39833985
VertexAttribute attrib = polyAttribs.get(name);
39843986
tessGeo.updateAttribBuffer(attrib.name);
39853987
if (!attrib.bufferCreated()) attrib.createBuffer(pgl);
39863988
pgl.bindBuffer(PGL.ARRAY_BUFFER, attrib.buf.glId);
39873989
pgl.bufferData(PGL.ARRAY_BUFFER, attrib.sizeInBytes(size),
3988-
tessGeo.polyAttribBuffers.get(name), glUsage);
3989-
}
3990+
tessGeo.polyAttribBuffers.get(name), glUsage);
3991+
});
39903992

39913993
pgl.bindBuffer(PGL.ARRAY_BUFFER, 0);
39923994

0 commit comments

Comments
 (0)