Fixed crash in obj_is_in_view()

This commit is contained in:
MysterD 2023-11-08 20:20:32 -08:00
parent e166a12d96
commit 11d5037790
1 changed files with 2 additions and 0 deletions

View File

@ -1142,6 +1142,8 @@ static void geo_process_shadow(struct GraphNodeShadow *node) {
* Since (0,0,0) is unaffected by rotation, columns 0, 1 and 2 are ignored. * Since (0,0,0) is unaffected by rotation, columns 0, 1 and 2 are ignored.
*/ */
static s32 obj_is_in_view(struct GraphNodeObject *node, Mat4 matrix) { static s32 obj_is_in_view(struct GraphNodeObject *node, Mat4 matrix) {
if (!node || !gCurGraphNodeCamFrustum) { return FALSE; }
if (node->node.flags & GRAPH_RENDER_INVISIBLE) { if (node->node.flags & GRAPH_RENDER_INVISIBLE) {
return FALSE; return FALSE;
} else if (node->skipInViewCheck) { } else if (node->skipInViewCheck) {