From 68b0ad239538395d4556783252281ef4b4a23bc2 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 19 Aug 2010 21:50:34 +0200 Subject: [PATCH] switch back viewport properly. Now it WORKS! Zoomwindow MOSTLY works (no selectable fov), letterbox works perfectly, sidebyside stereo works perfectly --- qcsrc/client/View.qc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 93dcbf382..30c5763ce 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -560,10 +560,6 @@ void CSQC_UpdateView(float w, float h) R_AddEntities(MASK_NORMAL | MASK_ENGINE | MASK_ENGINEVIEWMODELS); R_RenderScene(); - // WORKAROUND: clear scene at the end again, to work around tiny console bug - R_SetView(VF_MIN, '0 0 0'); - R_SetView(VF_SIZE, '1 0 0' * w + '0 1 0' * h); - // now switch to 2D drawing mode by calling a 2D drawing function // then polygon drawing will draw as 2D stuff, and NOT get queued until the // next R_RenderScene call @@ -889,6 +885,11 @@ void CSQC_UpdateView(float w, float h) if(autocvar__hud_configure) HUD_Panel_Mouse(); + + // let's reset the view back to normal for the end + R_SetView(VF_MIN, '0 0 0'); + R_SetView(VF_SIZE, '1 0 0' * w + '0 1 0' * h); + // be safe against triggerbots until everyone has the fixed engine // this call is meant to overwrite the trace globals by something // unsuspicious -- 2.39.2