diff --git a/engine/client/render.h b/engine/client/render.h index 98f839373..0abec9358 100644 --- a/engine/client/render.h +++ b/engine/client/render.h @@ -235,7 +235,6 @@ qbyte *GLMod_LeafPVS (struct mleaf_s *leaf, struct model_s *model, qbyte *buffer qbyte *GLMod_LeafnumPVS (int leafnum, struct model_s *model, qbyte *buffer); void GLMod_Think (void); -void GLMod_ReloadTextures(void); void GLMod_NowLoadExternal(void); void GLR_WipeStains(void); void R_LoadSkys (void); @@ -254,7 +253,6 @@ struct mleaf_s *SWMod_PointInLeaf (float *p, struct model_s *model); qbyte *SWMod_LeafPVS (struct mleaf_s *leaf, struct model_s *model, qbyte *buffer); void SWMod_Think (void); -void SWMod_ReloadTextures(void); void SWMod_NowLoadExternal(void); #endif diff --git a/engine/client/renderer.c b/engine/client/renderer.c index 2b4d5ae78..4daa9eab0 100644 --- a/engine/client/renderer.c +++ b/engine/client/renderer.c @@ -552,8 +552,6 @@ void (*Mod_TouchModel) (char *name); struct mleaf_s *(*Mod_PointInLeaf) (float *p, struct model_s *model); qbyte *(*Mod_Q1LeafPVS) (struct mleaf_s *leaf, struct model_s *model, qbyte *buffer); void (*Mod_NowLoadExternal) (void); - -void (*Mod_ReloadTextures) (void); void (*Mod_Think) (void); @@ -808,7 +806,6 @@ void R_SetRenderer(r_qrenderer_t wanted) Mod_PointInLeaf = SWMod_PointInLeaf; Mod_Q1LeafPVS = SWMod_LeafPVS; Mod_NowLoadExternal = SWMod_NowLoadExternal; - Mod_ReloadTextures = SWMod_ReloadTextures; #else Mod_Init = GLMod_Init; Mod_Think = GLMod_Think; @@ -821,7 +818,6 @@ void R_SetRenderer(r_qrenderer_t wanted) Mod_PointInLeaf = GLMod_PointInLeaf; Mod_Q1LeafPVS = GLMod_LeafPVS; Mod_NowLoadExternal = GLMod_NowLoadExternal; - Mod_ReloadTextures = GLMod_ReloadTextures; #endif @@ -894,7 +890,6 @@ void R_SetRenderer(r_qrenderer_t wanted) Mod_PointInLeaf = SWMod_PointInLeaf; Mod_Q1LeafPVS = SWMod_LeafPVS; Mod_NowLoadExternal = SWMod_NowLoadExternal; - Mod_ReloadTextures = SWMod_ReloadTextures; @@ -968,7 +963,6 @@ void R_SetRenderer(r_qrenderer_t wanted) Mod_PointInLeaf = GLMod_PointInLeaf; Mod_Q1LeafPVS = GLMod_LeafPVS; Mod_NowLoadExternal = GLMod_NowLoadExternal; - Mod_ReloadTextures = GLMod_ReloadTextures; @@ -1018,6 +1012,8 @@ qboolean R_ApplyRenderer (rendererstate_t *newr) Hunk_FreeToLowMark(host_hunklevel); //is this a good idea? + gl_skyboxname.modified = true; + if (qrenderer) //graphics stuff only when not dedicated { qbyte *data;