glx: Don't flush twice if we fallback to dri2CopySubBuffer
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 18 Aug 2011 12:46:02 +0000 (08:46 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 18 Aug 2011 13:46:06 +0000 (09:46 -0400)
commit4a7667b96b7bd7cdffbe929182c15935b74facd2
tree631d48e3d2dc674c4011c1f2e349874fe04066d6
parent01680ce2f350f44073e8f1adf3b36d48424d21fa
glx: Don't flush twice if we fallback to dri2CopySubBuffer

The flush extensions flush call indicates end of frame and should only
be called once per frame.  However, in the dri2SwapBuffer fallback
path, we call flush and then call dri2CopySubBuffer, which also calls
flush.  Refactor the code to only call flush once.
src/glx/dri2_glx.c