From a37b0e58f1ee440cd27019abcea863d6a94b3a54 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 13 Apr 2026 13:49:00 +0500 Subject: [PATCH] ref: soft: get rid of RI.drawOrtho, it's a debugging/development tool, not suited for software renderer use --- ref/soft/r_local.h | 1 - ref/soft/r_main.c | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/ref/soft/r_local.h b/ref/soft/r_local.h index 5ed417e0..a6dd39ef 100644 --- a/ref/soft/r_local.h +++ b/ref/soft/r_local.h @@ -125,7 +125,6 @@ typedef struct const ref_viewpass_t rvp; qboolean onlyClientDraw; // disabled by client request - qboolean drawOrtho; // draw world as orthogonal projection cl_entity_t *currententity; model_t *currentmodel; diff --git a/ref/soft/r_main.c b/ref/soft/r_main.c index f9cc0fa1..a753be57 100644 --- a/ref/soft/r_main.c +++ b/ref/soft/r_main.c @@ -411,13 +411,6 @@ static void R_SetupProjectionMatrix( matrix4x4 m ) { float xMin, xMax, yMin, yMax, zNear, zFar; - if( RI.drawOrtho ) - { - const ref_overview_t *ov = gEngfuncs.GetOverviewParms(); - Matrix4x4_CreateOrtho( m, ov->xLeft, ov->xRight, ov->yTop, ov->yBottom, ov->zNear, ov->zFar ); - return; - } - RI.farClip = R_GetFarClip(); zNear = 4.0f; @@ -1155,11 +1148,6 @@ void R_SetupRefParams( const ref_viewpass_t *rvp ) RI.rvp = *rvp; RI.onlyClientDraw = FBitSet( rvp->flags, RF_ONLY_CLIENTDRAW ); - - if( !FBitSet( rvp->flags, RF_DRAW_CUBEMAP )) - RI.drawOrtho = FBitSet( rvp->flags, RF_DRAW_OVERVIEW ); - else - RI.drawOrtho = false; } /*