Hello Guest

OpenGL drivers out of date on 2012 macbook pro

  • 3 Replies
  • 1989 Views
OpenGL drivers out of date on 2012 macbook pro
« on: August 18, 2014, 19:36:51 »
I have recently taken to programming in Java with LWJGL. I have been following a tutorial series on how to make a game engine using this library. However, I have been getting a lot of errors despite the fact that I copied his code exactly, and later used the exact code he typed to troubleshoot. I asked him about it and he said that it was probably because my OpenGl was out of date. Sure enough, when I checked, I discovered that I was running OpenGL 2.1, and needed at least openGl 3.0 to follow his tutorial. When I searched around on how to update my drivers, it said that you needed update your OS X. However, I am currently running the latest version of Mavericks, and have a 2012 retina Macbook Pro. According to this apple help page: http://support.apple.com/kb/HT5942?viewlocale=en_US&locale=en_US

my particular model should be running OpenGL 4.1, not 2.1. How on earth could this have happened, and what do I need to do to update my drivers? Thanks so much in advance!

*

Offline Cornix

  • *****
  • 487
Re: OpenGL drivers out of date on 2012 macbook pro
« Reply #1 on: August 18, 2014, 20:16:32 »
Perhaps you should rather ask this question in an apple support forum. This forum is mainly for problems with OpenGL programming.

*

Offline abcdef

  • ****
  • 320
Re: OpenGL drivers out of date on 2012 macbook pro
« Reply #2 on: August 19, 2014, 20:45:16 »
There are other posts on this topic ( I believe I have asked this before too). On apple Mac you need to explicitly say you want to run on opengl 3+. You can do this when you create the display. Find the other posts and you will have your answer (I am on my phone so can't search easily)

*

Offline ra4king

  • **
  • 58
  • I'm the King!
    • Roi's Website
Re: OpenGL drivers out of date on 2012 macbook pro
« Reply #3 on: August 21, 2014, 21:52:38 »
You should explicitly ask for OpenGL 3+ using the ContextAttribs object you give to an overloaded method of Display.create().

Code: [Select]
Display.create(new PixelFormat(), new ContextAttribs(4, 1).withProfileCore(true)); // major, minor
« Last Edit: August 21, 2014, 21:54:57 by ra4king »
-Roi