Skip to content

Commit

Permalink
Merge pull request #794 from pbdot/ec-fix-no-batches
Browse files Browse the repository at this point in the history
Fix crash with no subsectors drawn in a frame
  • Loading branch information
dashodanger authored Jan 5, 2025
2 parents cd50c49 + c88fe20 commit bd2aef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source_files/edge/r_bsp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ static int32_t BspTraverseProc(void *thread_data)
// walk the bsp tree
BspWalkNode(root_node);

if (current_batch->num_items_)
if (current_batch && current_batch->num_items_)
{
BSPQueueRenderBatch(current_batch);
}
Expand Down

0 comments on commit bd2aef8

Please sign in to comment.