xlib winsys: use new st_swapbuffers() function
authorBrian Paul <brianp@vmware.com>
Fri, 1 May 2009 18:28:57 +0000 (12:28 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 1 May 2009 18:54:20 +0000 (12:54 -0600)
commitb57b6c2d2c83aee96f945ce3385a1ab8337335cb
tree0eb263b8246bc70c85ab6a847614a9db99ceedf0
parent3f52a853f795d7432b181de81da6f0c4cf1cc202
xlib winsys: use new st_swapbuffers() function

The front/back buffer pointers are truly swapped (when there is an actual
front buffer).

This fixes some issues seen with apps/tests that draw to both the front
and back color buffers.  The true swap allows us to avoid the (potentially)
slow surface_copy() call in update_framebuffer_state() and is cleaner
overall.
src/gallium/state_trackers/glx/xlib/xm_api.c