xdemo/glxswapcontrol: Move get_framge_usage after the swap.
authorPauli Nieminen <suokkos@gmail.com>
Mon, 3 Aug 2009 19:05:33 +0000 (12:05 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 3 Aug 2009 19:42:05 +0000 (13:42 -0600)
commitfb7cf731f9028c1c53addb6c10c68bd4c1794ae6
treed7a827c61c23c65fde5b0dea8707b6e891cdf6a2
parentb59eb3b8b14a8973dd133cbc73949a0993d07fb6
xdemo/glxswapcontrol: Move get_framge_usage after the swap.

This fixes the problem that first frame would report bogus usage values.
Problem was caused because get_frame_usage returned data from previous buffer
swap.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
progs/xdemos/glxswapcontrol.c