Skip to content

Commit

Permalink
Set inverse_transform_dirty=false after recomputing it.
Browse files Browse the repository at this point in the history
  • Loading branch information
SiegeLordEx authored and SiegeLord committed Jan 18, 2024
1 parent 29cc1a8 commit 5d3dd4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformations.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ const ALLEGRO_TRANSFORM *al_get_current_inverse_transform(void)
if (target->inverse_transform_dirty) {
al_copy_transform(&target->inverse_transform, &target->transform);
al_invert_transform(&target->inverse_transform);
target->inverse_transform_dirty = false;
}

return &target->inverse_transform;
Expand Down

0 comments on commit 5d3dd4d

Please sign in to comment.