]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Change MAX_TEXTUREUNITS from 16 to 32 - this fixes a memory corruption that was causi...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 30 Jun 2018 21:59:21 +0000 (21:59 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 30 Jun 2018 21:59:21 +0000 (21:59 +0000)
commit33fb1d11372ce3b1beab0407015535247d6bff14
treedfe8368f8c106ffdf2bb1cf26b2cc5fb339c6799
parent7c972a8441766a3153eab19a238746c098b6f0fc
Change MAX_TEXTUREUNITS from 16 to 32 - this fixes a memory corruption that was causing all kinds of problems (e.g. cachepic issues).

Get rid of vid.texarrayunits, vid.teximageunits, vid.texunits variables as they are meaningless, assume 32 (because that is how many GL enums exist).

Don't clear texture units on reset, we don't know how many texture units really exist and it's largely pointless.

Do a more thorough unbind of textures on deletion, just for good measure.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12437 d7cf8633-e32d-0410-b094-e92efae38249
draw.h
gl_backend.c
gl_draw.c
gl_rmain.c
vid.h
vid_sdl.c
vid_shared.c