fix typo in last commit

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11065 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=72a7d4d32d54b286e18336c9afa740dc4738cc2b
added RENDERPATH_GLES1

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11066 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=8c215d5236b730b87168ff735e47a2d61f88976c
disabled glBegin, glEnd, glPolygonMode wrapper functions in GLES2 init
because the r_showtris/r_shownormals code now checks if these are NULL

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11067 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ab196f09c6afcfa263e249640662cc9599ed7f4d
crypto: avoid generating control-like packets

In non-AES mode, we now replace packets whose hash starts with FFFFFFFF by
7FFFFFFF, and 8000LLLL by 0000LLLL. When decoding, packets with these prefixes
have two attempts.

AES encrypted mode is unaffected by this, as there packets always start with a
byte from 00 to 0F.

Also, no longer whine about receiving packets that fail the HMAC test when the
packets look like control packets (the NQ CONNECT packet DP sends when
connecting sometimes was received in time for this to match).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11068 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=294762940c3d8fb26989ce5fa0f8d2588d5e5a2e
fix a comment about ftransform

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11071 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=82b158e7968e999067ec812310070f7a388358bd
fix compile failure in crypto.c

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11072 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e6ca1459736cbd145657e386651a83056ca2474e
do NOT use the crc inside the file name for .po file loading

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11073 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=57ef90a25a912906da171e0f7d0e6bd89f883ba5
really fix csprogs.dat.??.po loading

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11074 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e261a7d6d74f5b01f490d10d6e9cc85fae994e4a
R_LightPoint: fix glitch. Add checking for worldmodel->lit to R_LightPoint and R_CompleteLightPoint.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11075 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5329f72efb4a855e1d3caac8434e816fe8d3da5e
evaluate sv_curl_serverpackages changes immediately, not on map restart

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11076 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=dd03295660a97e009e976b1d3b91d1f42f46678e
added r_transparent cvar to turn off transparent rendering for
performance testing
added r_deformvertexes cvar to turn off deforms for performance testing
neither of these settings are meant to be performance improvements, only
testing methods

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11077 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5d0d1ba365ad6a2cb0e67cd7a4f26f1c1247bd0d
in glsl130, add "precision mediump float"

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11078 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3bbaf6508a069bd985a3c7c821d9956f6f2e6ae7
do NOT use mediump explicitly for GLSL130 because this seems incompatible with inout

0(97) : error C7538: OpenGL does not allow 'mediump' after 'inout'

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11079 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f9923b69f7589cf0f373a62b8345a1c8b199859e
use highp by default

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11080 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=2a94982ac6597607c26bc87bc60b71a91ba3bc27
use highp by default

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11080 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=2a1d277f6bacb49629d9ab203698c9973930766c
refactored the SDL_WM_SetCaption and SDL_WM_SetIcon logic into a single
wrapper function for each platform (VID_WrapSDL_SetVideoMode), moved
caption setting before SDL_SetVideoMode to prevent the "SDL_app" title

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11081 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=aae5719546ec6e20a213dc1c7b76766a30aeb80e
changed vid_hasfocus check to use SDL_APPINPUTFOCUS only, not checking
SDL_APPMOUSEFOCUS

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11083 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f9555b33708bfd874a5ea66f7bf4e04057b70438
CL_RotateMoves: helper builtin for Xonotic for perfect warpzone prediction

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11084 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7c9b33c2b122a788bb81c3e1dd0bb172f9cdc706
on OSX use ~/Library/Application Support/<gamename> instead of ~/.gamename

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11082 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5873729e60f4dfad4523a04ac67a925e0039e71d
reworked userdir path selection, now has 4 "tiers":
NOHOME - uses basedir for configs
HOME - uses basedir on Windows, ~/.gamename/ on OSX and Linux
MYGAMES - uses My Games on Windows, ~/.gamename/ on Linux and OSX
SAVEDGAMES - uses Saved Games/gamename/ on Vista+, ~/.gamename/ on Linux
and ~/Library/Application Support/gamename/ on OSX
The tiers are tried in reverse order and any existing one will be used,
new ones will always be the last one.
If gamedirname1 is "id1" then Windows will use NOHOME rather than create
a new userdir when none are found. (but you can still create one or use
-mygames or -savedgames commandline options to make it do so)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11085 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ebcf972cfa9c79f263fd0ca752d90fa2b2614521