
Edit: Mac cannot run 7.0 unfortunately. OpenGL problems. (Apple isn't updating OpenGL on mac anymore. And apparently 7.0 needs a higher version of OpenGL than 3.0. OpenGL version currently installed on my mac is 2.0.)
> And apparently 7.0 needs a higher version of OpenGL than 3.0.
No, OpenClonk should work fine with OpenGL 3.0. Since 7.0 it needs at least 3.0, though, while before 2.1 was good enough.
Which parts of 3.0 are we using? The check at initialization still tests for 2.1.
That's supported by OS X, although it's possible that we can only use it in a 3.0+ context. We might have to actively request one of those (and change all of the code that relies on removed features from pre-3.0)

Apple themselves claim they're supporting up to OpenGL 4.1 in Mavericks, and OpenGL 3.2 in Lion. I think it's really just that we need to explicitly request a proper core profile context instead of the legacy 2.1 based one we're using right now, so we can use a more recent GLSL version.
Ok, looks like we can't create a 3.2 compatibility context on OS X. That means we're going to have to rewrite all of the code that relies on the FFP (alpha testing, all (most?) of the matrix stuff, most likely more) and move it into shaders, then use a 3.2 core context. This is also good because it means we can start using OpenGL debuggers (I don't know of any that properly works on pre-3.2 contexts).

Should we then officially not support OS X for the next release?
I'd be interested in doing it, but probably can't get it done before we want to release 7.0.
I didn't try it, but I think the only thing we are using OpenGL 3.0 for is 790219a. So maybe we could just revert that commit for 7.0.
I didn't try it, but I think the only thing we are using OpenGL 3.0 for is 790219a. So maybe we could just revert that commit for 7.0.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill