Skip to content

Commit

Permalink
fix: clear images even if they're not rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd committed Jul 10, 2023
1 parent ae0bbc4 commit ddf4b58
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lua/image/image.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ end

---@param shallow? boolean
function Image:clear(shallow)
if not self.is_rendered then return end

-- utils.debug(("[image] clear %s, shallow: %s"):format(self.id, shallow))
self.global_state.backend.clear(self.id, shallow or false)
self.rendered_geometry = {
Expand Down

0 comments on commit ddf4b58

Please sign in to comment.