mirror of
https://github.com/processing/processing4.git
synced 2026-01-30 03:41:15 +01:00
some debugging
This commit is contained in:
@@ -4479,10 +4479,14 @@ public class PShapeOpenGL extends PShape {
|
||||
0, 4 * voffset * PGL.SIZEOF_BYTE);
|
||||
shader.setShininessAttribute(root.glPolyShininess, 1, PGL.FLOAT,
|
||||
0, voffset * PGL.SIZEOF_FLOAT);
|
||||
} else if (shader.supportLighting()) {
|
||||
PGraphics.showWarning(PGraphicsOpenGL.LIGHT_SHADER_ERROR);
|
||||
}
|
||||
|
||||
if (tex != null) {
|
||||
shader.setTexture(tex);
|
||||
} else if (shader.supportsTexturing()) {
|
||||
PGraphics.showWarning(PGraphicsOpenGL.TEXTURE_SHADER_ERROR);
|
||||
}
|
||||
|
||||
pgl.bindBuffer(PGL.ELEMENT_ARRAY_BUFFER, root.glPolyIndex);
|
||||
|
||||
Reference in New Issue
Block a user