SDL2 platform: OpenGL support, part 1