hint() not working with GLGraphics within beginDraw()
in
Contributed Library Questions
•
2 years ago
Hi...
I'm using GLGraphics as my renderer, and also as a OffScreenBuffer and TextureWindow...
When I try to place hint() within my graphics, buffer, I'm getting an error...
Example:
canvas.beginDraw();
canvas.hint(ENABLE_OPENGL_4X_SMOOTH);
canvas.stroke(255);
...
canvas.endDraw();
Error:
PApplet$RendererChangeException
Console:
Exception in thread "Animation Thread" processing.core.PApplet$RendererChangeException
at processing.opengl.PGraphicsOpenGL.hint(PGraphicsOpenGL.java:538)
at bombIR.style(bombIR.java:441)
at bombIR.mouseDragged(bombIR.java:414)
at processing.core.PApplet.handleMouseEvent(PApplet.java:1821)
at processing.core.PApplet.dequeueMouseEvents(PApplet.java:1748)
at processing.core.PApplet.handleDraw(PApplet.java:1642)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
( style() is the function where this code sits, called upon mouseDragged() ... )
Specs:
P5 1.5.1
OS X 10.6.8
Java 1.6
1