Skip to content

Commit

Permalink
fix crash in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nillerusr committed Oct 23, 2023
1 parent 5a4d0b7 commit e8fc059
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/gl_rsurf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4934,7 +4934,7 @@ static bool EnumerateLeafInBox_R(mnode_t * RESTRICT node, const EnumLeafBoxInfo_
*/

// take advantage of high throughput/high latency
fltx4 planeNormal = LoadAlignedSIMD( plane->normal.Base() );
fltx4 planeNormal = LoadUnalignedSIMD( plane->normal.Base() );
fltx4 vecBoxMin = LoadAlignedSIMD(pInfo->m_vecBoxMin);
fltx4 vecBoxMax = LoadAlignedSIMD(pInfo->m_vecBoxMax);
fltx4 cornermin, cornermax;
Expand Down
2 changes: 1 addition & 1 deletion public/mathlib/mathlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ inline T clamp( T const &val, T const &minVal, T const &maxVal )
// FIXME: this should move to a different file
struct cplane_t
{
VectorAligned normal;
Vector normal;
float dist;
byte type; // for fast side tests
byte signbits; // signx + (signy<<1) + (signz<<1)
Expand Down

0 comments on commit e8fc059

Please sign in to comment.