Playing with valgrind and hexen2.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3730 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2011-01-30 01:32:30 +00:00
parent 386424a8e6
commit ab865b7e25
15 changed files with 74 additions and 31 deletions

View file

@ -318,14 +318,10 @@ void GLDraw_ReInit (void)
int maxtexsize;
gltexture_t *glt;
TRACE(("dbg: GLDraw_ReInit: Closing old\n"));
while(gltextures)
if (gltextures)
{
glt = gltextures;
gltextures = gltextures->next;
BZ_Free(glt);
Con_Printf("gl_draw didn't shut down cleanly\n");
gltextures = NULL;
}
memset(gltexturetablebuckets, 0, sizeof(gltexturetablebuckets));
@ -448,6 +444,15 @@ void GLDraw_DeInit (void)
Sh_Shutdown();
#endif
Shader_Shutdown();
while(gltextures)
{
gltexture_t *glt;
glt = gltextures;
gltextures = gltextures->next;
BZ_Free(glt);
}
}
#include "crosshairs.dat"