There used to be a bug (discussed in #40), that ALT was still set after using ALT-Tab. Thus when next pressing enter fullscreen was toggled. This should now be fixed by unsetting the modifiers when focus is regained (SDL_ACTIVEEVENT or SDL_WINDOWEVENT_FOCUS_GAINED).
On windows un-grabbing (or possibly re-grabbing) the mouse seems to mess up the view angly (view is centered afterwards), see #18 That's fixed by not releasing the mouse (there is no reason to do that anyway).
This fails on some SDL drivers and just spams the console.
Wayland actually uses this.
Apply 94cd0ee to d3xp as well.
Fixes compilation of the dedicated server.
SDL2 supports multiple windows, and the grabbing is set per window, so move it to sys/glimp.cpp.
Convert to bitflags to ease moving it.
Defaults to off, tree doesn't yet compile with SDL2.
This is just a modified version of FindSDL.cmake
While that's a lie it makes FindSDL skip SDLmain, which we have in tree and compile ourselves.
Dynamically load all symbols at runtime. This in in preparation for SDL2/OpenGLES.
We don't compile any mfc crap for our own good, so get rid of these.
This isn't specific to wgl.
Unused and nobody cares.
These use OpenGL calls, which are useless on all platforms without editor support.
Like the comment above said, this is invalid and can't work. The backend is properly set via R_InitOpenGL().
This was only used for the nv20 renderer.
This was only used by the r200 renderer on OSX.
Both unused, except for the mfc editors, which don't compile anyway.