Checking doublebuffering from inside a GLEventListener

The subject pretty much says it - is it possible to check if you’re single-buffered or double-buffered inside one of the GLEventListener methods? I could, of course, send some sort of signal when generating the listener based on the GLCapabilities, but that’s kind of a hassle. I can certainly imagine that the whole point of de-coupling the listeners and drawables would make this impossible, but I’m wondering if there’s some clever hack that I’m missing exists…?

Sorry but there’s no good way of doing this at the moment. Note that swapBuffers() is a no-op in the single-buffered case, so maybe this doesn’t really matter for your application. We need at some point to expose the GLCapabilities from the GLDrawable but this actually involves more platform-specific code than we have in the system at the moment and there are some other things that need to be taken care of first.

Basically I just need to know if glDrawBuffer(GL_BACK) will cause problems or not… I can’t really imagine the application running anywhere other than a double-buffered context, but this little nagging voice in the back of my head says that if its bad form to not check. Oh, well, not a big deal.

Thanks Ken.