[vulkan] Set the 2d near distance to 0

-999999 seems to be a hold-over from the software renderer passed
through both gl renderers. I guess it didn't matter in the gl renderers
due to various draw hacks, but it made quite a difference in vulkan.
Fixes the view model covering the hud.
This commit is contained in:
Bill Currie 2021-07-25 14:21:37 +09:00
parent 56c2fa380b
commit 7995f59a90
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ Vulkan_CalcProjectionMatrices (vulkan_ctx_t *ctx)
int width = vid.conview->xlen; int width = vid.conview->xlen;
int height = vid.conview->ylen; int height = vid.conview->ylen;
QFV_Orthographic (mat->projection_2d, 0, width, 0, height, -99999, 99999); QFV_Orthographic (mat->projection_2d, 0, width, 0, height, 0, 99999);
float aspect = (float) r_refdef.vrect.width / r_refdef.vrect.height; float aspect = (float) r_refdef.vrect.width / r_refdef.vrect.height;
QFV_Perspective (mat->projection_3d, r_refdef.fov_y, aspect); QFV_Perspective (mat->projection_3d, r_refdef.fov_y, aspect);