Skip to content

Commit 20dbe47

Browse files
committed
Fix wrong usage pattern of R_SyncRenderThread
1 parent 3ea7958 commit 20dbe47

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/engine/renderer/tr_shader.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6073,10 +6073,7 @@ shader_t *R_FindShader( const char *name, shaderType_t type, int flags )
60736073

60746074
// make sure the render thread is stopped, because we are probably
60756075
// going to have to upload an image
6076-
if ( r_smp->integer )
6077-
{
6078-
R_SyncRenderThread();
6079-
}
6076+
R_SyncRenderThread();
60806077

60816078
ClearGlobalShader();
60826079

@@ -6269,10 +6266,7 @@ qhandle_t RE_RegisterShaderFromImage( const char *name, image_t *image )
62696266

62706267
// make sure the render thread is stopped, because we are probably
62716268
// going to have to upload an image
6272-
if ( r_smp->integer )
6273-
{
6274-
R_SyncRenderThread();
6275-
}
6269+
R_SyncRenderThread();
62766270

62776271
ClearGlobalShader();
62786272

0 commit comments

Comments
 (0)