summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-07-19 10:19:22 -0400
committerKristian Høgsberg <[email protected]>2010-07-19 22:45:50 -0400
commitb006d465ea0ea680326f702ad248544c576301a2 (patch)
tree62421b5ba57a6b10b9bebfeeb962bc8b28c6e052
parentf9d11b8cee235dae42f757e21c2536391c07b3e8 (diff)
glx: Dont use dri2WaitX() to update fake front
This saves a superfluous flush and a create/destryo region.
-rw-r--r--src/glx/dri2_glx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 04d900c2e55..96d33e0ec1e 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -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