From 7f7c8719b226c2e6cacdac161170971423252469 Mon Sep 17 00:00:00 2001 From: sezero Date: Thu, 18 Feb 2010 16:00:34 +0000 Subject: [PATCH] draw.h, gl_draw.c, gl_vidsdl.c: removed my recently added Draw_ClearMenuPicCache() helper. not necessary at all. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@51 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/draw.h | 2 -- quakespasm/Quake/gl_draw.c | 6 ------ quakespasm/Quake/gl_vidsdl.c | 2 -- 3 files changed, 10 deletions(-) diff --git a/quakespasm/Quake/draw.h b/quakespasm/Quake/draw.h index 3300d13e..0d66d40f 100644 --- a/quakespasm/Quake/draw.h +++ b/quakespasm/Quake/draw.h @@ -39,7 +39,5 @@ qpic_t *Draw_PicFromWad (char *name); qpic_t *Draw_CachePic (char *path); void Draw_NewGame (void); -void Draw_ClearMenuPicCache (void); - void GL_SetCanvas (canvastype newcanvas); //johnfitz diff --git a/quakespasm/Quake/gl_draw.c b/quakespasm/Quake/gl_draw.c index 1ce34903..d52ffab7 100644 --- a/quakespasm/Quake/gl_draw.c +++ b/quakespasm/Quake/gl_draw.c @@ -139,12 +139,6 @@ qboolean scrap_dirty; gltexture_t *scrap_textures[MAX_SCRAPS]; //johnfitz -void Draw_ClearMenuPicCache (void) -{ - memset(menu_cachepics, 0, menu_numcachepics * sizeof(cachepic_t)); - menu_numcachepics = 0; -} - /* ================ Scrap_AllocBlock diff --git a/quakespasm/Quake/gl_vidsdl.c b/quakespasm/Quake/gl_vidsdl.c index c70d300c..5973e43b 100644 --- a/quakespasm/Quake/gl_vidsdl.c +++ b/quakespasm/Quake/gl_vidsdl.c @@ -430,8 +430,6 @@ void VID_Restart (void) vid_canalttab = true; - // Clear menu pic cache - Draw_ClearMenuPicCache (); //warpimages needs to be recalculated TexMgr_RecalcWarpImageSize ();