diff --git a/ref_vk/vk_light.c b/ref_vk/vk_light.c index b8c83092..7e5ee0cd 100644 --- a/ref_vk/vk_light.c +++ b/ref_vk/vk_light.c @@ -1264,9 +1264,9 @@ void VK_LightsLoadMapStaticLights( void ) { // Load static map model { matrix3x4 xform; - Matrix3x4_LoadIdentity(xform); const vk_brush_model_t *const bmodel = map->cache.data; ASSERT(bmodel); + Matrix3x4_LoadIdentity(xform); for (int i = 0; i < bmodel->render_model.num_geometries; ++i) { const vk_render_geometry_t *geom = bmodel->render_model.geometries + i;