engine: client: make ref params static so client.dll can save address of it and don't trigger ASan

This commit is contained in:
Alibek Omarov 2023-07-17 05:52:45 +03:00
parent 788bc820c8
commit 6461fa5042

View File

@ -364,7 +364,9 @@ V_RenderView
*/ */
void V_RenderView( void ) 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; ref_viewpass_t rvp;
int viewnum = 0; int viewnum = 0;