From 5fbee4a97a92542244c4123a2a1e41fecc76ef3c Mon Sep 17 00:00:00 2001 From: LifeKILLED Date: Tue, 28 Feb 2023 22:58:54 +0400 Subject: [PATCH] vk rt: fix linux build 2 --- ref/vk/vk_ray_model.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ref/vk/vk_ray_model.c b/ref/vk/vk_ray_model.c index eb99c883..8ef3a476 100644 --- a/ref/vk/vk_ray_model.c +++ b/ref/vk/vk_ray_model.c @@ -7,6 +7,7 @@ #include "vk_render.h" #include "vk_staging.h" #include "vk_light.h" +#include "vk_math.h" #include "eiface.h" #include "xash3d_mathlib.h" @@ -523,7 +524,7 @@ void VK_RayFrameAddModel( vk_ray_model_t *model, const vk_render_model_t *render applyMaterialToKusok(kusochki + i, geom, render_model->color, HACK_reflective); - Matrix4x4_ToArrayFloatGL(render_model->prev_transform, (float*)((kusochki + i)->prev_transform)); + Matrix4x4_ToArrayFloatGL(render_model->prev_transform, (float*)(kusochki + i)->prev_transform); } /* gEngine.Con_Reportf("model %s: geom=%d kuoffs=%d kustoff=%d kustsz=%d sthndl=%d\n", */