Skip to content

Commit e0138cf

Browse files
committed
fix: app.c checks
1 parent 8bceba4 commit e0138cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editor/app.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,8 @@ pl_app_update(plAppData* ptAppData)
749749
if(ptAppData->bShowBVH)
750750
{
751751
gptRenderer->debug_draw_bvh(ptAppData->ptView);
752-
gptRenderer->debug_draw_bvh(ptAppData->ptSecondaryView);
752+
if(ptAppData->ptSecondaryView)
753+
gptRenderer->debug_draw_bvh(ptAppData->ptSecondaryView);
753754
}
754755

755756
if(ptAppData->bShowGrid)

0 commit comments

Comments
 (0)