Extend max level to include i for writing and so fb is complete and avoid resulting errors like: "Framebuffer is incomplete: Attachment level is not in the [base level, max level] range".
#pragma once