fix GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT error