ref: soft: get rid of RI.drawOrtho, it's a debugging/development tool, not suited for software renderer use

This commit is contained in:
Alibek Omarov
2026-04-13 13:49:00 +05:00
committed by a1batross
parent afca422e35
commit a37b0e58f1
2 changed files with 0 additions and 13 deletions

View File

@@ -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;

View File

@@ -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;
}
/*