mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: soft: get rid of RI.drawOrtho, it's a debugging/development tool, not suited for software renderer use
This commit is contained in:
@@ -125,7 +125,6 @@ typedef struct
|
|||||||
const ref_viewpass_t rvp;
|
const ref_viewpass_t rvp;
|
||||||
|
|
||||||
qboolean onlyClientDraw; // disabled by client request
|
qboolean onlyClientDraw; // disabled by client request
|
||||||
qboolean drawOrtho; // draw world as orthogonal projection
|
|
||||||
|
|
||||||
cl_entity_t *currententity;
|
cl_entity_t *currententity;
|
||||||
model_t *currentmodel;
|
model_t *currentmodel;
|
||||||
|
|||||||
@@ -411,13 +411,6 @@ static void R_SetupProjectionMatrix( matrix4x4 m )
|
|||||||
{
|
{
|
||||||
float xMin, xMax, yMin, yMax, zNear, zFar;
|
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();
|
RI.farClip = R_GetFarClip();
|
||||||
|
|
||||||
zNear = 4.0f;
|
zNear = 4.0f;
|
||||||
@@ -1155,11 +1148,6 @@ void R_SetupRefParams( const ref_viewpass_t *rvp )
|
|||||||
RI.rvp = *rvp;
|
RI.rvp = *rvp;
|
||||||
|
|
||||||
RI.onlyClientDraw = FBitSet( rvp->flags, RF_ONLY_CLIENTDRAW );
|
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user