From 6461fa50422292141a366374798b34d3cda71057 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 17 Jul 2023 05:52:45 +0300 Subject: [PATCH] engine: client: make ref params static so client.dll can save address of it and don't trigger ASan --- engine/client/cl_view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_view.c b/engine/client/cl_view.c index 9600c6f5..477b5be4 100644 --- a/engine/client/cl_view.c +++ b/engine/client/cl_view.c @@ -364,7 +364,9 @@ V_RenderView */ void V_RenderView( void ) { - ref_params_t rp; + // HACKHACK: make ref params static + // not really critical but allows client.dll to take address of refdef and don't trigger ASan + static ref_params_t rp; ref_viewpass_t rvp; int viewnum = 0;