If I understand the code correctly, the OpenGL stuff is before, and when we arrive at line 31, in the case of !sdl_surface, opengl is already false anyway, and flags is set &~SDL_OPENGL.
So the handling of the OpenGL stuff is completely untouched by me.
Maybe someone else can check on this, too. If noone objects, I'll merge this tonight.
I didn't do anything to OpenGL.
If I understand the code correctly, the OpenGL stuff is before, and when we arrive at line 31, in the case of !sdl_surface, opengl is already false anyway, and flags is set &~SDL_OPENGL.
So the handling of the OpenGL stuff is completely untouched by me.
Maybe someone else can check on this, too. If noone objects, I'll merge this tonight.