https://bugs.freedesktop.org/show_bug.cgi?id=40767
--- Comment #7 from Marek Olšák maraeo@gmail.com 2011-09-11 09:23:41 PDT --- Apitrace can record and replay OpenGL commands. You can get it here: https://github.com/apitrace/apitrace
There is more info in this blogpost: http://zrusin.blogspot.com/2011/04/apitrace.html