Before I submit a bug report, wanted to know if anyone has a good fix for this or could provide more insight into the issue for when I do report it. Problem is on Windows, don't experience it on Mac. When a selectInput dialog is open, the sketch goes white or whatever color has been defined as the PApplet (AWT Panel) background. I think it may be because the sketch is being halted (waiting for input) before completing the draw. Or maybe the Panel is pushing forward in front of the GL canvas. I don't know... but here some example code that exibits this behavior on my machine.
- import processing.opengl.PGraphicsOpenGL;
- void setup() {
- size(400,400,OPENGL);
- background(0);
- }
- void draw() {
- background(0);
- rect(random(40,320),random(40,320),40,40);
- }
- void mousePressed() {
- selectInput("This is a test");
- }
}
1