glx/dri2: Fix dri2CopySubBuffer() again.
authorMichel Dänzer <daenzer@vmware.com>
Tue, 20 Jul 2010 10:21:17 +0000 (12:21 +0200)
committerMichel Dänzer <michel@daenzer.net>
Tue, 20 Jul 2010 10:21:17 +0000 (12:21 +0200)
commitbd3d2724f51a44b7fc814a5bc43d8ddafa8e3cba
tree1dc48fcbf9010c2362c2d70c3d29956d242bc09a
parentbdde9d2fcead2e49985f4cd1c73ad4aae5b2878f
glx/dri2: Fix dri2CopySubBuffer() again.

Only refresh the fake front buffer if there is one, and only destroy the region
once.

Fixes X11 protocol errors reported by 'mcgreg' on IRC.
src/glx/dri2_glx.c