Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL 3 on OSX #953

Open
auriamg opened this issue Feb 20, 2014 · 0 comments
Open

OpenGL 3 on OSX #953

auriamg opened this issue Feb 20, 2014 · 0 comments

Comments

@auriamg
Copy link
Owner

auriamg commented Feb 20, 2014

version 130 in shaders causes trouble on OSX.

Apparently on OSX when creating the GL canvas, one must explicitely request it to support OpenGL 3 :
http://stackoverflow.com/questions/19865463/opengl-4-1-under-mavericks/19868861#19868861

When you request your pixel format using one of the lower-level APIs on OS X, you need to add the following to your attribute list in order to use a core profile:

CGL:

  kCGLPFAOpenGLProfile,     kCGLOGLPVersion_3_2_Core

NSOpenGL:

  NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core

http://stackoverflow.com/questions/20264814/glsl-version-130-on-mac-os-x-causes-error

OS X is different, it does not support compatibility profiles.
You either get the legacy OpenGL 2.1 implementation or the core 3.2 (3.3/4.1 in OS X 10.9) implementation
but you can never mix-and-match features from both.
Furthermore, unless you modify your code to ask for a core
profile, you will be limited to OpenGL 2.1 by default.

Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/t/ticket/1142

@auriamg auriamg added this to the later milestone Feb 20, 2014
@auriamg auriamg self-assigned this Feb 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant