My SDL app uses OpenGL 3, and while the code works perfectly on macOS, on Windows (tested Windows 7) SDL create an OpenGL 1.1.0 context (as reported by glGetString(GL_VERSION)).
It may not be able to run OpenGL 3, but I would doubt that. If it can run windows 7, it’s probably more than capable of doing better than OpenGL 1.1. Can you make sure that it isn’t caused by hardware? How old is the computer?
EDIT: I think it might be caused by requesting the version before creating the context.
It’s a VM running in VMware Fusion on a late 2014 iMac. So the SDL_GL_SetAttribute should come after SDL_GL_CreateContext? I’ll try that and see if it helps.
Duh, apparently I forgot turning on GPU acceleration on VMWare so it supported only 1.1.0, but even after enabling it it supported only 2.1. In any case, it’s a setup issue. Thanks!
Edit: Seems that Parallels does support OpenGL up to version 3.2 on Windows guests. Seems useful!