From 6d98be8cd6e23550d06a5cbb72f8203e816f5fd6 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 19 Aug 2010 07:55:25 +0200 Subject: [PATCH] fix 2D coordinate system of console (stupid workaround) --- qcsrc/client/View.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 13312135c..93dcbf382 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -560,6 +560,10 @@ 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 -- 2.39.2