Misc fixes to IBO code to correctly use sizeof(glIndex_t)
OpenGL2: Speed up fog shader slightly.
OpenGL2: Some shader cleanup
OpenGL2: Fix for "unsupported framebuffer format" bug
OpenGL2: reduce varying usage in lightall shader.
Fix UI parse message for menu files

Missing a space after colon.
OpenGL2: Disable GL_ARB_seamless_cube_map by default, caused huge frame drops on some hardware
Don't set the window title twice
Set com_minimized to 0 when the window is restored
Send key up events for the mouse wheel

Previous versions of SDL would send SDL_MOUSEBUTTONUP events for the mouse wheel immediately following the corresponding SDL_MOUSEBUTTONDOWN event
OpenGL2: Remove AGEN_FRESNEL(superceded by cubemap patch), and some small fixes and optimizations.
Merge pull request #16 from cmf028/sdl2

SDL2 fixes
OpenGL2: default to RGBM lightmap, and add r_floatLightmap for old behaviour.
Revert "5097 - Menu corrupted on start (on IRIX)"

Calling glClear( any bits ) in GL_SetDefaultState makes connect screen black using the proprietary NVidia driver on Windows and GNU/Linux.

This reverts commit 92573270de98a20cd78842bd2043cfe07bc5b2e1.
Drop sounds starting with * before allocating sfx slot

Causes handle 0 to be returned by S_RegisterSound.
OpenGL2: Fix TCGEN_ENVIRONMENT stages not rendering correctly.
OpenGL2: Clean up texmod calculations, and improve vertex animation handling.
OpenGL2: Use an idea from ETXreal and separate world VBO into separate VBOs by shader.
OpenGL2: Merge bsp surface structs into a single struct, and more cleanup.
Fix SDL2 losing event subsystem

Quiting SDL Video or Joystick subsystem implies quiting the Event subsystem in SDL2.
SDL keeps track of number of init and shutdown calls for each subsystem.
Shuting down video or joystick more or equal to number of times they're inited will lead to event shutdown.

Toggling in and out of fullscreen or running in_restart twice causes SDL event subsystem to shutdown, making input not work.

If the console is closed, IN_GobbleMotionEvents gets stuck in a loop. SDL_PeepEvents returns -1 when there is an error, but we assume non-0 means read more events.

IN_ShutdownJoystick needs to check if joystick subsystem was inited before quitting it, otherwise we may cause SDL event subsystem to shutdown.