Skip to content

Commit

Permalink
no-padding
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Dec 30, 2024
1 parent e199b4f commit b9fbbab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/engine/qcommon/q_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,6 @@ void MatrixTransformBounds( const matrix_t m, const bounds_t &b, bounds_t &o );
vec_t dist;
byte type; // for fast side tests: 0,1,2 = axial, 3 = nonaxial
byte signbits; // signx + (signy<<1) + (signz<<2), used as lookup during collision
byte pad[ 2 ];
};

enum class traceType_t
Expand Down
7 changes: 1 addition & 6 deletions src/engine/renderer/tr_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1112,12 +1112,7 @@ void R_CalcFrustumFarCornersUnsafe( const plane_t frustum[ FRUSTUM_FAR + 1 ], ve

static void CopyPlane( const cplane_t *in, cplane_t *out )
{
VectorCopy( in->normal, out->normal );
out->dist = in->dist;
out->type = in->type;
out->signbits = in->signbits;
out->pad[ 0 ] = in->pad[ 0 ];
out->pad[ 1 ] = in->pad[ 1 ];
memcpy( out, in, sizeof(cplane_t) );
}

static void R_SetupSplitFrustums()
Expand Down

0 comments on commit b9fbbab

Please sign in to comment.