glx: Dont use dri2WaitX() to update fake front

This saves a superfluous flush and a create/destryo region.
This commit is contained in:
Kristian Høgsberg 2010-07-19 10:19:22 -04:00
parent f9d11b8cee
commit b006d465ea
1 changed files with 3 additions and 3 deletions

View File

@ -97,8 +97,6 @@ struct __GLXDRIdrawablePrivateRec
int swap_interval;
};
static void dri2WaitX(__GLXDRIdrawable * pdraw);
static void
dri2DestroyContext(__GLXDRIcontext * context,
__GLXscreenConfigs * psc, Display * dpy)
@ -318,7 +316,9 @@ dri2CopySubBuffer(__GLXDRIdrawable *pdraw, int x, int y, int width, int height)
/* Refresh the fake front (if present) after we just damaged the real
* front.
*/
dri2WaitX(pdraw);
DRI2CopyRegion(pdraw->psc->dpy, pdraw->xDrawable, region,
DRI2BufferFakeFrontLeft, DRI2BufferFrontLeft);
XFixesDestroyRegion(pdraw->psc->dpy, region);
}
static void