Hey, thanks for the answer. This doesn’t work for me, I implemented it as Kronykus shows it in the screenshot below, but now the last texture that was drawn is always displayed and doesn’t disappear.
Edit: Fixed it, I just had to set the int when leaving the box to a fictonal one that doesn’t show any texture, thanks!