Misc fixes to IBO code to correctly use sizeof(glIndex_t)
OpenGL2: Remove AGEN_FRESNEL(superceded by cubemap patch), and some small fixes and optimizations.
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.
Clear more variables in CL_InitServerInfo

Have cls.localServers use CL_InitServerInfo.
Don't set cls.localServers netType to from.type, it's the wrong value.

Note: server->visible is not cleared in CL_InitServerInfo, as stated by a comment below a place where CL_InitServerInfo is used.
Support IQMs with joints and no poses
Add support for IQM int blend indices and float blend weights

Integer blend indices are converted to bytes at load, ioq3 doesn't allow more than 128 joints.

Heavily based on code by @zippers.
IQM int/float vertex arrays were already swapped
Fix IQM comments refering to IQM_BYTE instead of IQM_UBYTE
Initialize blendIndexesType and blendWeightsType
Merge last two commits into renderergl2
Remove unused shader state code from tr_local.h
Remove vertexLightmap from textureBundle_t, it's never qtrue
Fix video recording sync drift (patch refactored but original author unknown)
OpenGL2: Reduce glsl shader count by using a uniform to disable textures.