]> git.cworth.org Git - fips/blobdiff - glxwrap.c
Add per-frame time and latency measurements
[fips] / glxwrap.c
index 4523c90588f2dd709926061e677460e43696ecfa..7b90ceb4008d2d98976ce3645a352d901c3eeb8d 100644 (file)
--- a/glxwrap.c
+++ b/glxwrap.c
 void
 glXSwapBuffers (Display *dpy, GLXDrawable drawable)
 {
+       context_end_frame_pre_swap ();
+
        GLWRAP_DEFER (glXSwapBuffers, dpy, drawable);
 
-       context_end_frame ();
+       context_end_frame_post_swap ();
 }
 
 /* glXGetProcAddressARB is a function which accepts a string and