Skip to content

Commit ba59f4d

Browse files
committed
Fix /glsl_restart with material system
1 parent 4f40934 commit ba59f4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/engine/renderer/tr_shade.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ static void GLSL_InitGPUShadersOrError()
190190
gl_shaderManager.load( gl_depthReductionShader );
191191
}
192192

193+
if ( tr.world ) // this only happens with /glsl_restart
194+
{
195+
GLSL_InitWorldShaders();
196+
}
197+
193198
if ( glConfig2.realtimeLighting )
194199
{
195200
realtimeLightingRenderer_t realtimeLightingRenderer = realtimeLightingRenderer_t( r_realtimeLightingRenderer.Get() );

0 commit comments

Comments
 (0)