Is there documentation of what the values for the below are: SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, newProfile); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, newMajor); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, newMinor);
Asking in relation to mesa, mingl etc and what they should be set at for the appropriate gl type.
I'm trying to work out how to have one binary that can use either minigl or mesa but can't get that to work (apparently thats how shaderjoy can now work).
Anyway, using the SDL2/tests/helloworld.c as an example, I CAN do context switches, but as soon as I attempt to use an openGL command outside of a miniGL context, I get a DSI followed by ISI.
Is this even possible using your SDL2 or do I just have to keep compiling two different versions depending on the openGL library I want to use?
Thanks Dave PS. Currently using a static build of the libSDL in case that is relevant.
Edit: I got it to work by changing GL commands not used to SDL_PROC_UNUSED. Maybe there were some default ones that werent available in miniGL but were in Mesa.
------ I tried that but its failing on attempting to load the GL functions in minigl.
I think I'll just have to wait until you update helloworld for me to work it out.