Detecting the actual profile

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Detecting the actual profile

elect
I would like to find a way to retrieve the current profile.

Because right now if I create, let's say, a GL3 profile

        Display display = NewtFactory.createDisplay(null);
        Screen screen = NewtFactory.createScreen(display, 0);
        GLProfile glProfile = GLProfile.get(GLProfile.GL3);
        GLCapabilities glCapabilities = new GLCapabilities(glProfile);
        Resources.glWindow = GLWindow.create(screen, glCapabilities);


I always get true also for GL4

        System.out.println(""+Resources.glWindow.getGL().isGL3());
        System.out.println(""+Resources.glWindow.getGL().isGL4());

I would like to get true for GL3 and false for GL4