Skip to content

Commit e8fc059

Browse files
committed
fix crash in some cases
1 parent 5a4d0b7 commit e8fc059

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

engine/gl_rsurf.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4934,7 +4934,7 @@ static bool EnumerateLeafInBox_R(mnode_t * RESTRICT node, const EnumLeafBoxInfo_
49344934
*/
49354935

49364936
// take advantage of high throughput/high latency
4937-
fltx4 planeNormal = LoadAlignedSIMD( plane->normal.Base() );
4937+
fltx4 planeNormal = LoadUnalignedSIMD( plane->normal.Base() );
49384938
fltx4 vecBoxMin = LoadAlignedSIMD(pInfo->m_vecBoxMin);
49394939
fltx4 vecBoxMax = LoadAlignedSIMD(pInfo->m_vecBoxMax);
49404940
fltx4 cornermin, cornermax;

public/mathlib/mathlib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ inline T clamp( T const &val, T const &minVal, T const &maxVal )
114114
// FIXME: this should move to a different file
115115
struct cplane_t
116116
{
117-
VectorAligned normal;
117+
Vector normal;
118118
float dist;
119119
byte type; // for fast side tests
120120
byte signbits; // signx + (signy<<1) + (signz<<1)

0 commit comments

Comments
 (0)