Login  Register

Creating a GLProfile in an Applet

Posted by pjcozzi on Nov 01, 2010; 8:01pm
URL: https://forum.jogamp.org/Creating-a-GLProfile-in-an-Applet-tp1824031.html

Hi,

I am using the following code to create a GLProfile inside the init() function of my JApplet:

   GLProfile profile = GLProfile.get(new String[] { GLProfile.GL4bc, GLProfile.GL3bc, GLProfile.GL2 });

I then create a canvas, and start making GL calls.  If I run the applet from Eclipse, a call to glGetString with GL_VERSION returns the following:

   4.0.10243 Compatibility Profile Context

If I run the applet in a web browser, I get:

   3.0.10243 Compatibility Profile Context

I'm sure the different is because I am using a more recent version of JOGL on my development machine than the signed version served by jogamp.org.

My questions are:
   * How often do the signed JOGL jars get updated?
   * Why do I only get a 3.0 context, not a 3.3 context?  Can I change my code to get a 3.3 context?

Thanks,
Patrick