Reply – Re: How to refer GL context in AWT Mouse Event
Your Name
Subject
Message
or Cancel
In Reply To
Re: How to refer GL context in AWT Mouse Event
— by gouessej gouessej
You should create a Runnable to call repaint() and pass this runnable to SwingUtilities.invokeLater(). Moreover, creating a buffer at each call of glReadPixels is a bad idea, create a direct NIO buffer once and reuse it.
Julien Gouesse | Personal blog | Website