mesa/st: accept NULL and empty buffer objects