add checkFramebufferStatus