Fixed a crash by moving the FBO constructor