summaryrefslogtreecommitdiff
path: root/src/cgame/cg_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_main.c')
-rw-r--r--src/cgame/cg_main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c
index 2cdc9149..35a6022b 100644
--- a/src/cgame/cg_main.c
+++ b/src/cgame/cg_main.c
@@ -907,6 +907,17 @@ static void CG_RegisterGraphics( void ) {
cgs.gameModels[i] = trap_R_RegisterModel( modelName );
}
+ // register all the server specified shaders
+ for (i=1 ; i<MAX_SHADERS ; i++) {
+ const char *shaderName;
+
+ shaderName = CG_ConfigString( CS_SHADERS+i );
+ if ( !shaderName[0] ) {
+ break;
+ }
+ cgs.gameShaders[i] = trap_R_RegisterShader( shaderName );
+ }
+
CG_ClearParticles ();
}