Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does every Mac with Lion support OpenGL 3.2?

I'm writing a mac application that draws some of its UI on NSOpenGLView using OpenGL with legacy profile.

My app is targeted to OS X 10.7 and later.

If I migrate to OpenGL 3.2, would it prevent some users with Lion to run it, or every Mac with Lion supports OpenGL 3.2 anyway?

like image 244
Yoav Avatar asked Aug 30 '12 21:08

Yoav


People also ask

What version of OpenGL does macOS support?

According to Apple, OpenGL is no longer supported. However, it appears v4. 1 of OpenGL was supported on many devices as of July 28, 2020.

Do Macs use OpenGL?

OpenGL is officially deprecated by Apple starting with macOS Mojave 10.14. However, Apple is still maintaining the standard.

How do I know what version of OpenGL is on my Mac?

Mac and Android mobile devices: Go to OpenGL Extensions Viewer (Windows), and click the appropriate link to download the OpenGL Extensions Viewer from the Mac App Store, iTunes Store, or the Android Market, depending on the device and operating system.

What version is macOS lion?

Mac OS X Lion (version 10.7; marketed as OS X Lion) is the eighth major release of Mac OS X, Apple's desktop and server operating system for Macintosh computers.


1 Answers

OS X 10.7's SDK includes OpenGL 3.2's Core profile, but actual run-time support requires the presence of an OpenGL 3.2-compliant GPU and driver.

OpenGL 3.2 was released in 2008 and OS X 10.7 Lion supports certain Mac models going back to 2006. The Late 2006 Core 2 Duo MacBook Pro runs Lion and has an ATI Mobility Radeon X1600 which is an OpenGL 2.0 GPU.

By that single example it is shown that the set of computers capable of running 10.7 Lion is a superset of the set of computers capable of running OpenGL 3.2 programs.

Note that I'm neither a Mac expert nor an OpenGL programmer, I don't know to what extent OpenGL is backwards compatible. I guess compiling against OpenGL 3.2 libraries is fine, but if you try to use any hardware-accelerate 3.2 features then you'd get a runtime error. But then you should test to see if a feature is supported before using it, so your program should run fine on older Macs provided you make some minor modifications.

like image 59
Dai Avatar answered Sep 30 '22 13:09

Dai