Fix leak in canvas code and samples #60

Merged
MartinFouilleul merged 3 commits from fix_canvas_leak into main 2023-08-23 14:33:22 +00:00
Collaborator

A number of functions in graphics_common.c where assuming oc_scratch() to be cleared at the end of the frame. We don't assume that anymore, so use oc_scratch_begin()/oc_scratch_end() instead.
(Samples can use still oc_scratch() directly since they control when to clear it, but now it's not necessary for canvas command buffer to work properly.)

Closes #42.

A number of functions in `graphics_common.c` where assuming `oc_scratch()` to be cleared at the end of the frame. We don't assume that anymore, so use `oc_scratch_begin()`/`oc_scratch_end()` instead. (Samples can use still `oc_scratch()` directly since they control when to clear it, but now it's not necessary for canvas command buffer to work properly.) Closes #42.
MartinFouilleul added 3 commits 2023-08-23 14:32:53 +00:00
MartinFouilleul merged commit d3e27df818 into main 2023-08-23 14:33:22 +00:00
MartinFouilleul deleted branch fix_canvas_leak 2023-08-23 14:33:22 +00:00
Sign in to join this conversation.
No reviewers
No Label
macOS
windows
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hmn/orca#60
No description provided.