]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Fix bugs with unloading of cachepic skinframes in QC menus - the reloading was broken...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 30 Apr 2018 06:38:44 +0000 (06:38 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 30 Apr 2018 06:38:44 +0000 (06:38 +0000)
commit7689a4aa19ea33f53a5a0345c904e7081c6ac6ea
tree8ea6d3f6d7447a1f93cf0aeda76dbc04214eecf4
parent35b7d263c31d6576b488a3df4c1b06ad5acb3ecd
Fix bugs with unloading of cachepic skinframes in QC menus - the reloading was broken in some weird way that made it white (it wasn't reusing the skinframe).

Simplify Draw_CachePic behaviors with regards to NewPic and textureflags (mismatch now causes texture reload rather than having multiple with the same name in memory).

Improved reloading of unloaded pics by reusing the existing skinframe, so it can not produce duplicates.

Make Draw_NewPic clear the pic->autoload flag, this is a behavior change in VM_CL_ReadPicture.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12407 d7cf8633-e32d-0410-b094-e92efae38249
gl_draw.c
gl_rmain.c
render.h