I have an installation that uses two remotely-controlled projectors connected to a Mac Mini. When I power on the projectors it causes the Mac to 'detect displays' and my (processing) app window moves from one to the next, and also the framebuffer becomes corrupted -- there is noise and random distortion all over the image, even though the program keeps running and updating. During the switch, I get errors logged to the system log such as:
I should note that I'm doing most of the drawing in this app into a GLGraphicsOffScreen buffer and then rendering it to the screen as texture-mapped quads. I don't think this is the issue though, because even drawing done straight to the Processing canvas gets corrupted.
Is there some command to reinitialize the app's frame buffer and reset the frame to its original coordinates? I tried enabling frame.setResizable and then adjusting the size to see if it would refresh, but I'm getting
Frame buffer is incomplete (GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT)
errors.