From aa9ab766a769d7ef16408b5c0cb4ef98e92d219f Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 23 Sep 2009 08:59:37 +0000 Subject: [PATCH] reduce code a bit more git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9226 d7cf8633-e32d-0410-b094-e92efae38249 --- r_shadow.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/r_shadow.c b/r_shadow.c index 81e9a767..7fde5527 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -432,7 +432,6 @@ void r_shadow_start(void) void r_shadow_shutdown(void) { - int i; CHECKGLERROR R_Shadow_UncompileWorldLights(); @@ -443,20 +442,6 @@ void r_shadow_shutdown(void) r_shadow_attenuationgradienttexture = NULL; r_shadow_attenuation2dtexture = NULL; r_shadow_attenuation3dtexture = NULL; - CHECKGLERROR - if (r_shadow_fborectangle) - qglDeleteFramebuffersEXT(1, &r_shadow_fborectangle); - r_shadow_fborectangle = 0; - CHECKGLERROR - for (i = 0;i < R_SHADOW_SHADOWMAP_NUMCUBEMAPS;i++) - if (r_shadow_fbocubeside[i]) - qglDeleteFramebuffersEXT(6, r_shadow_fbocubeside[i]); - memset(r_shadow_fbocubeside, 0, sizeof(r_shadow_fbocubeside)); - CHECKGLERROR - if (r_shadow_fbo2d) - qglDeleteFramebuffersEXT(1, &r_shadow_fbo2d); - r_shadow_fbo2d = 0; - CHECKGLERROR R_FreeTexturePool(&r_shadow_texturepool); R_FreeTexturePool(&r_shadow_filters_texturepool); maxshadowtriangles = 0; -- 2.39.2