From 42868d308e9071f4c4549ea589a69dd74474eda8 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 26 Feb 2012 14:14:24 +0900 Subject: [PATCH] Initialize the skins and particles subsystems. --- libs/video/renderer/r_cvar.c | 1 - libs/video/renderer/vid_render_gl.c | 2 ++ libs/video/renderer/vid_render_glsl.c | 2 ++ libs/video/renderer/vid_render_sw.c | 2 ++ libs/video/renderer/vid_render_sw32.c | 2 ++ 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libs/video/renderer/r_cvar.c b/libs/video/renderer/r_cvar.c index e428c87ba..994d1169a 100644 --- a/libs/video/renderer/r_cvar.c +++ b/libs/video/renderer/r_cvar.c @@ -340,7 +340,6 @@ R_Init_Cvars (void) "Show a turtle icon if your fps is below 10"); scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE, viewsize_f, "Set the screen size 30 minimum, 120 maximum"); - R_Particles_Init_Cvars (); vr_data.graphheight = r_graphheight; vr_data.scr_viewsize = scr_viewsize; diff --git a/libs/video/renderer/vid_render_gl.c b/libs/video/renderer/vid_render_gl.c index f8705ee70..66b23a4ba 100644 --- a/libs/video/renderer/vid_render_gl.c +++ b/libs/video/renderer/vid_render_gl.c @@ -117,7 +117,9 @@ gl_vid_render_init (void) { m_funcs = &model_funcs; R_Init_Cvars (); + gl_R_Particles_Init_Cvars (); gl_R_Init (); + Skin_Init (); vid = *vr_data.vid; } diff --git a/libs/video/renderer/vid_render_glsl.c b/libs/video/renderer/vid_render_glsl.c index 393d588a5..e25799e6b 100644 --- a/libs/video/renderer/vid_render_glsl.c +++ b/libs/video/renderer/vid_render_glsl.c @@ -117,7 +117,9 @@ glsl_vid_render_init (void) { m_funcs = &model_funcs; R_Init_Cvars (); + glsl_R_Particles_Init_Cvars (); glsl_R_Init (); + Skin_Init (); vid = *vr_data.vid; } diff --git a/libs/video/renderer/vid_render_sw.c b/libs/video/renderer/vid_render_sw.c index 4b8af6a4b..4dd0d063b 100644 --- a/libs/video/renderer/vid_render_sw.c +++ b/libs/video/renderer/vid_render_sw.c @@ -112,7 +112,9 @@ sw_vid_render_init (void) { m_funcs = &model_funcs; R_Init_Cvars (); + R_Particles_Init_Cvars (); sw_R_Init (); + Skin_Init (); vid = *vr_data.vid; } diff --git a/libs/video/renderer/vid_render_sw32.c b/libs/video/renderer/vid_render_sw32.c index fb1655dc4..6f9f7053a 100644 --- a/libs/video/renderer/vid_render_sw32.c +++ b/libs/video/renderer/vid_render_sw32.c @@ -117,7 +117,9 @@ sw32_vid_render_init (void) { m_funcs = &model_funcs; R_Init_Cvars (); + sw32_R_Particles_Init_Cvars (); sw32_R_Init (); + Skin_Init (); vid = *vr_data.vid; }