guard against out-of-bounds jump table targets
OpenGL2: Add fourth cascade for sun shadows, and adjust sun shadow cvar defaults.
spearmint: Add tr_animation_mds.c from iortcw tr_animation.c

iortcw tr_animation.c has mdr and mds code.
Let's split it up into two files.
spearmint: Add (partial) MDS support to OpenGL1

Support for separate torso axis and animation frame has not been added yet.
Missing R_ModelBounds support.
Not included in dedicated server.
spearmint: Support loading MDS models in dedicated server

A lot of the static vars gave warnings about being unused
in dedicated build without the rendering code, so move into
the function that uses them if possible.

Removed numVerts that was set, but not used.
spearmint: Add GL_State call for non-working/disabled MDS tag drawing
spearmint: Clean up MDS frameSize code based on MDR code
spearmint: Allow VMs to get bounds of MDS models (OpenGL1/dedicated)
spearmint: Fix gettings bounds of MDR models

Also changed MDS whitespace.
spearmint: Copy renderergl1/tr_animation_mds.c to renderergl2
spearmint: Add (partial) MDS support to OpenGL2

Support for separate torso axis and animation frame has not been added yet.
Merge remote-tracking branch 'ioquake3/master'

Conflicts:
	code/renderergl2/tr_scene.c
OpenGL2: Remove R_MipMap() and R_MipMap2(), and fix gamma conversion in R_MipMapsRGB()
OpenGL2: Fix a glsl compile error on old hardware with r_shadowFilter 0.
Merge remote-tracking branch 'ioquake3/master'
spearmint: Backpart some MDM/MDX features to MDS

Added support for having an MDS use skeleton in a different MDS file.
Added R_BonesStillValid.
spearmint: Backport MDM/MDX r_boneDebug modes to MDS
spearmint: Backport MDM RB_CheckOverflow to MDS
spearmint: Backport MDM ingles code (disabled)

Makes MDS animation is sort of jerky. Not sure if it makes I haven't full
backported it or if MDM export exports the infomation different.

So it's just disabled for now.
spearmint: Copy tr_animation_mds.c to *_mdm.c