mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[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:
parent
56c2fa380b
commit
7995f59a90
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ Vulkan_CalcProjectionMatrices (vulkan_ctx_t *ctx)
|
|||
|
||||
int width = vid.conview->xlen;
|
||||
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;
|
||||
QFV_Perspective (mat->projection_3d, r_refdef.fov_y, aspect);
|
||||
|
|
Loading…
Reference in a new issue