diff --git a/engine/client/quakedef.h b/engine/client/quakedef.h index c3fe78ba9..101602af4 100644 --- a/engine/client/quakedef.h +++ b/engine/client/quakedef.h @@ -370,6 +370,7 @@ void COM_AssertMainThread(const char *msg); #else #define com_workererror false #define COM_AddWork(t,f,a,b,c,d) (f)((a),(b),(c),(d)) +#define COM_InsertWork(t,f,a,b,c,d) (f)((a),(b),(c),(d)) #define COM_WorkerPartialSync(c,a,v) #define COM_WorkerFullSync() #define COM_HasWork() false diff --git a/engine/gl/gl_shader.c b/engine/gl/gl_shader.c index af7cdea09..50814a37d 100644 --- a/engine/gl/gl_shader.c +++ b/engine/gl/gl_shader.c @@ -2901,13 +2901,14 @@ static void Shaderpass_ClampMap (parsestate_t *ps, char **ptr) static void Shaderpass_VideoMap (parsestate_t *ps, char **ptr) { - shader_t *shader = ps->s; - shaderpass_t *pass = ps->pass; char *token = Shader_ParseSensString (ptr); #ifndef HAVE_MEDIA_DECODER (void)token; #else + shader_t *shader = ps->s; + shaderpass_t *pass = ps->pass; + if (pass->cin) Z_Free (pass->cin); diff --git a/engine/server/sv_user.c b/engine/server/sv_user.c index 7990e9a6a..4d1e2c717 100644 --- a/engine/server/sv_user.c +++ b/engine/server/sv_user.c @@ -3588,7 +3588,9 @@ void SV_BeginDownload_f(void) } if (ISNQCLIENT(host_client)) host_client->send_message = true; +#ifndef NOLEGACY SV_DownloadQueueNext(host_client); +#endif return; }