From 75ee7daa8257c7bacd420ef9cdc0a526ecf02da7 Mon Sep 17 00:00:00 2001 From: Shpoike Date: Sun, 25 Aug 2024 02:23:30 +0100 Subject: [PATCH] Fix postprocess screwyness with the classic sbar. --- engine/gl/gl_rmain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/gl/gl_rmain.c b/engine/gl/gl_rmain.c index ec1289c54..a62b67e6d 100644 --- a/engine/gl/gl_rmain.c +++ b/engine/gl/gl_rmain.c @@ -1978,7 +1978,8 @@ texid_t R_RenderPostProcess (texid_t sourcetex, texid_t sourcedepth, int type, s GLBE_FBO_Sources(sourcetex, sourcedepth); sourcetex = R2D_RT_Configure(restexname, w, h, TF_RGBA32, RT_IMAGEFLAGS); GLBE_FBO_Update(&fbo_postproc, 0, &sourcetex, 1, r_nulltex, w, h, 0); - R2D_ScalePic(0, 0, r_refdef.vrect.width, r_refdef.vrect.height, shader); + qglViewport(0,0,w,h); + R2D_ScalePic(0, 0, vid.fbvwidth, vid.fbvheight, shader); if (R2D_Flush) R2D_Flush(); GLBE_RenderToTextureUpdate2d(true);