From 54c49bad341dbfc99b0eb2eebee2d9a554d2e54b Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Wed, 28 Jul 2021 10:52:07 +0200 Subject: [PATCH] Added some missing initialization that was messing up the view frustum calculations. This fixes dynamic lightmaps not getting updated due to surfaces being culled incorrectly. --- engine/UniQuake/vid_uniquake.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/UniQuake/vid_uniquake.c b/engine/UniQuake/vid_uniquake.c index ac61e0b..2e5301b 100644 --- a/engine/UniQuake/vid_uniquake.c +++ b/engine/UniQuake/vid_uniquake.c @@ -31,6 +31,8 @@ void VID_Init(void) vid.colormap = host_colormap; vid.fullbright = 256 - LittleLong(*((int *)vid.colormap + 2048)); + + vid.recalc_refdef = 1; } void VID_Shutdown(void) @@ -47,6 +49,9 @@ void VID_Lock(void) void GL_BeginRendering(int *x, int *y, int *width, int *height) { + *x = *y = 0; + *width = vid.width; + *height = vid.height; } void GL_EndRendering(void)