Hi,
I've seen multiple issues on the code:
- populate_fbo() does'nt remove the previous instruction. You always add new one. Don't forget to clear the previous one with: self.fbo.clear()
- resize_fbo() resize correctly the fbo, but a new texture is generated. Cause of that, the previous texture used in setup_fbo() in the rectangle is not valid anymore. You need to set the texture for the Rectangle instruction again:
def setup_fbo(...):
...
self.r = Rectangle(..., texture=self.fbo.texture)
def resize_fbo(...):
self.fbo.size = ...
self.r.texture = self.fbo.texture
Regards,
Mathieu