Closed shamrin closed 2 years ago
Regarding:
disposing was automatic
auto-disposing was a thing until https://github.com/wwwtyro/candygraph/pull/26 but it was removed in favor of a simpler way to retain resources. @wwwtyro can explain best. Also see our discussion on re-introducing auto-disposal at https://github.com/wwwtyro/candygraph/issues/34#issuecomment-1134987124 and please chime in :)
Scissor
does have .dispose()
method. I forgot to check in the parent Composite
class. 🤦
Scissor
object should have.dispose()
method.While implementing PR #39, I had to jump through some hoops to properly dispose of buffers:
It would be better if
Scissor
would have.dispose()
method:P.S. Even better if 1) disposing was automatic, or 2) there was something like
cg.disposeLastRenderBuffers()
, or 3) one could do something likecg.render(...).dispose()
.