summaryrefslogtreecommitdiff
path: root/src/glx
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-07-23 13:41:13 -0700
committerEric Anholt <eric@anholt.net>2010-07-23 13:59:22 -0700
commit9a12a3925a82475fd8f01ba53987581d30dd1128 (patch)
tree1dba66dfc8ef3e63284ece1997f854d5fc13d8ee /src/glx
parenta2eb8bdcc7bf64285ff75243b6ea7a06bff97cdd (diff)
glx: Don't try to swap a front buffer if we don't have one.
Fixes glean glsl1 since 7b7845a076c933e096ac511b4184141ba194449a
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/dri2_glx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 2f12387860..ae5bf535af 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -423,12 +423,13 @@ dri2FlushFrontBuffer(__DRIdrawable *driDrawable, void *loaderPrivate)
struct dri2_drawable *pdraw = loaderPrivate;
__GLXdisplayPrivate *priv = __glXInitialize(pdraw->base.psc->dpy);
struct dri2_display *pdp = (struct dri2_display *)priv->dri2Display;
+ GLXContext gc = __glXGetCurrentContext();
/* Old servers don't send invalidate events */
if (!pdp->invalidateAvailable)
dri2InvalidateBuffers(priv->dpy, pdraw->base.drawable);
- dri2_copy_drawable(pdraw, DRI2BufferFrontLeft, DRI2BufferFakeFrontLeft);
+ dri2_wait_gl(gc);
}