Fix leak in canvas code and samples #60
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix_canvas_leak"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A number of functions in
graphics_common.c
where assumingoc_scratch()
to be cleared at the end of the frame. We don't assume that anymore, so useoc_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.