You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling setAttrib() on PShapeOpenGL between beginShape() and endShape() prints a warning setAttrib() can only be called outside beginShape() and endShape()
Current Behavior
Calling setAttrib() on PShapeOpenGL between beginShape and endShape prints a warning setNormal() can only be called outside beginShape() and endShape()
Possible Causes / Solutions
Replace PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setNormal()"); with PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setAttrib()"); for all overloads of setAttrib() in PShapeOpenGL.java
The text was updated successfully, but these errors were encountered:
In GitLab by @nking07049925 on Oct 5, 2020, 12:11
Expected Behavior
Calling setAttrib() on PShapeOpenGL between beginShape() and endShape() prints a warning
setAttrib() can only be called outside beginShape() and endShape()
Current Behavior
Calling setAttrib() on PShapeOpenGL between beginShape and endShape prints a warning
setNormal() can only be called outside beginShape() and endShape()
Possible Causes / Solutions
Replace
PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setNormal()");
withPGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setAttrib()");
for all overloads of setAttrib() in PShapeOpenGL.javaThe text was updated successfully, but these errors were encountered: