summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/dri2_glx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index a6ab1bd6683..1b3cf2bfc4f 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -557,7 +557,8 @@ __dri2CopySubBuffer(__GLXDRIdrawable *pdraw, int x, int y,
xrect.height = height;
if (psc->f && psc->f->base.version >= 4) {
- unsigned flags = flush ? __DRI2_FLUSH_CONTEXT : 0;
+ unsigned flags = (flush ? __DRI2_FLUSH_CONTEXT : 0) |
+ __DRI2_FLUSH_DRAWABLE;
__DRIcontext *ctx = dri2GetCurrentContext();
if (ctx) {
@@ -815,7 +816,8 @@ dri2SwapBuffers(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor,
__DRI2_THROTTLE_SWAPBUFFER, flush);
} else {
if (psc->f && psc->f->base.version >= 4) {
- unsigned flags = flush ? __DRI2_FLUSH_CONTEXT : 0;
+ unsigned flags = (flush ? __DRI2_FLUSH_CONTEXT : 0) |
+ __DRI2_FLUSH_DRAWABLE;
__DRIcontext *ctx = dri2GetCurrentContext();
if (ctx) {