Updated to SDL 2 to make it work on OSX.
- Camera perspective is broken? Fisheye
- Check OpenGL errors, lots of them
- Fixed wrong arguments to glTexImage2D
- Now on OpenGL core 4.1 profile so a lot is broken
- Need to use VAOs but setVertexArrayAttribute call depends on vertex offset at the moment