[SOLVED] OpenGL 3.2 / SDL 1.3 with OS X Lion

Your patch will likely break on all other versions of OSX. You need to wrap the “if (_this…)” code inside of an “#ifdef MAC_OS_X_VERSION_10_7”, because the constants used aren’t available in older versions of OSX.

I’ve been working on getting SDL 1.3 + OpenGL 3.2 working in Lion in my spare time for the past week, and unfortunately it seems that is just one of the road blocks preventing SDL 1.3 from successfully working properly with OpenGL 3.2. My OpenGL test code works in the native API, but completely breaks with SDL.