SDL2 with OpenGL -- weird results, what's wrong?

Posted by ber4444 on Game Development See other posts from Game Development or by ber4444
Published on 2012-10-19T09:07:46Z Indexed on 2012/10/19 11:27 UTC
Read the original article Hit count: 288

Filed under:
|
|
|
|

I'm porting an app to iOS, and therefore need to upgrade it to SDL2 from SDL1.2 (so far I'm testing it as an on OS X desktop app only). However, when running the code with SDL2, I'm getting weird results as shown on the second image below (the first image is how it looks with SDL, correctly). The single changeset that causes this is this one, do you see something obviously wrong there, or does SDL2 have some OpenGL nuances I'm unaware of? My SDL is based on changeset dd7e57847ea9 from HG (since then there is one "Allow specifying of OpenGL 3.2 Core Profile on Mac OS X" commit, not sure if that would help).

using SDL 1.2 using SDL 2

© Game Development or respective owner

Related posts about c++

Related posts about opengl