glx/dri2: print FPS when env var LIBGL_SHOW_FPS is 1 (v2)
authorMarek Olšák <maraeo@gmail.com>
Wed, 4 Jan 2012 01:09:44 +0000 (02:09 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 5 Jan 2012 17:29:11 +0000 (18:29 +0100)
commitf82d40d4b1aa60364c03c32578ecd675d4d86dcf
tree42ce4094cd7e77557561fe5f765f9473f0abe2b2
parentc77efc6bb63f7ff3f1ddf500e57beff5b317b9b1
glx/dri2: print FPS when env var LIBGL_SHOW_FPS is 1 (v2)

This is useful for apps which don't print FPS.
Only enabled in SwapBuffers.

v2: track state per drawable, use libGL prefix

Reviewed-by: Michel Dänzer <michel@daenzer.net>
src/glx/dri2_glx.c