[LWJGL] forcing openGL renderer to use the Core profile

I am stuck with using my moms MacBook Air (2010) for a few weeks.

When I print out GL_VERSION as a string (from java), it tells me openGL is on version 2.1, but I need at least OpenGL 3 to work on my game.

When I downloaded OpenGL Extensions Viewer

It tells me that I am on OpenGl version 3.3.

I did notice, however, that I am on version 3.3 when I am viewing the Core openGL profile. When I read the Compatibility profile, I am on 2.1.

Is there anything I can do to force OpenGL to use the core profile?

I checked NVidia’s website, but the drivers for this GPU only work on windows machines.

GPU: NVIDIA GeForce 320M 256 MB

You can specify the version you want by using the ContextAttribs class when creating the Display:



Display.create(new PixelFormat(), new ContextAttribs(3, 2).withProfileCore(true));


Well that introduced a million more problems than I expected :stuck_out_tongue:

I guess I will just have to wait until I am back on my own computer.