Explicit memory management for framebuffer attachments