Skip to content

Commit

Permalink
ogt_vox: fix up assert -> ogt_assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaver committed Apr 14, 2022
1 parent 28a22ad commit 214243c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ogt_vox.h
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@
size_t new_capacity = capacity ? (capacity * 3) >> 1 : 2; // grow by 50% each time, otherwise start at 2 elements.
new_capacity = new_count > new_capacity ? new_count : new_capacity; // ensure fits new_count
reserve(new_capacity);
assert(capacity >= new_count);
ogt_assert(capacity >= new_count, "failed to resize array");
}
count = new_count;
}
Expand Down Expand Up @@ -1032,7 +1032,7 @@

ogt_vox_transform sample_keyframe_transform(const ogt_vox_keyframe_transform* keyframes, uint32_t num_keyframes, uint32_t frame_index)
{
assert(num_keyframes >= 1);
ogt_assert(num_keyframes >= 1, "need at least one keyframe to sample");
if (frame_index <= keyframes[0].frame_index)
return keyframes[0].transform;
if (frame_index >= keyframes[num_keyframes-1].frame_index)
Expand Down

0 comments on commit 214243c

Please sign in to comment.