Graphics:Add error check when creat GraphicBuffer