Login  Register

Re: Getting GLAutoDrawable from GL4

Posted by gouessej on Nov 25, 2014; 2:05pm
URL: https://forum.jogamp.org/Getting-GLAutoDrawable-from-GL4-tp4033629p4033634.html

Hi

Don't pass GL instances, rather use GLContext.getCurrentGL(). Look at how I use JOGL in various engines to have an idea of the good practices. Your design seems to be really wrong. You can store the GLAutoDrawable anyway but it shouldn't be necessary most of the time.
Julien Gouesse | Personal blog | Website