Address issue #1758

This commit is contained in:
codeanticode
2013-05-18 06:49:54 -04:00
parent 7a7b49af6b
commit 2d3db38cb8
2 changed files with 24 additions and 0 deletions

View File

@@ -4191,6 +4191,8 @@ public class PShapeOpenGL extends PShape {
}
if (tex != null) {
shader.setNormalAttribute(root.glPolyNormal, 3, PGL.FLOAT,
0, 3 * voffset * PGL.SIZEOF_FLOAT);
shader.setTexcoordAttribute(root.glPolyTexcoord, 2, PGL.FLOAT,
0, 2 * voffset * PGL.SIZEOF_FLOAT);
shader.setTexture(tex);