Simplified FBOUtils code.