Add TEXF_PERSISTENT and R_PurgeTexture which only frees textures if that flag isn...
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 29 Nov 2007 20:45:19 +0000 (20:45 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 29 Nov 2007 20:45:19 +0000 (20:45 +0000)
commit0144ec3bdff2b7e8397be064cb7850a1ece7bce9
tree36e8b03c3d8cc144ac95c81635a3f259fcf6abbd
parenta539637da3c1f29cdf4c9d8cbbf551189fa55595
Add TEXF_PERSISTENT and R_PurgeTexture which only frees textures if that flag isn't set. Changed the SkinFrame purging code accordingly (and the default texture creation calls).
Fixed a bug that caused dynamic textures not to survive map switches (LoadExternal would try to load pixel data because ->base was set to NULL - it now restores the pointer in SkinFrame_Find..)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7737 d7cf8633-e32d-0410-b094-e92efae38249
cl_gecko.c
cl_video.c
gl_rmain.c
gl_textures.c
r_textures.h