https://github.com/apitrace/apitrace This can be used to record (and replay) all the GL commands sent down to the driver.