Fix multiplayer -> player setup

This commit is contained in:
Denis Pauk 2020-10-13 22:24:57 +03:00 committed by Yamagi
parent 39e69c90f0
commit 5a4554cfb5

View file

@ -1063,16 +1063,23 @@ R_SetLightLevel (void)
}
}
static void R_CleanuBorders(void)
static void R_CleanupBorders(void)
{
float h_border, v_border;
float imgTransform[] = { .0f, .0f, .0f, .0f, .0f, .0f, .0f, 1.f };
// without any borders
if (vid.height == r_newrefdef.height && vid.width == r_newrefdef.width)
{
return;
}
// not in game
if (r_newrefdef.rdflags & RDF_NOWORLDMODEL)
{
return;
}
h_border = (float)(vid.height - r_newrefdef.height) / vid.height / 2.0f;
v_border = (float)(vid.width - r_newrefdef.width) / vid.width / 2.0f;
@ -1118,7 +1125,7 @@ RE_RenderFrame (refdef_t *fd)
R_SetLightLevel ();
R_SetVulkan2D (&vk_viewport, &vk_scissor);
R_CleanuBorders();
R_CleanupBorders();
}