summaryrefslogtreecommitdiff
path: root/glamor
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-07-18 21:46:23 -0700
committerKeith Packard <keithp@keithp.com>2014-07-19 12:25:24 -0700
commitcff12936275db2f71f6d24f9ea0985a0d14af454 (patch)
tree3055d44b9ac51cf2e3749a86652c1f0df06444f8 /glamor
parentcfa302d6224d10860e60491333950544c4fb9b04 (diff)
glamor: sync_fence_set_triggered should use glFlush, not glFinish
I intended to use glFlush all along, but somehow managed to type glFinish instead. glFlush is sufficient (for a single-queue GPU) to ensure serialization between queued rendering in the X server and future rendering from the client. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
Diffstat (limited to 'glamor')
-rw-r--r--glamor/glamor_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor_sync.c b/glamor/glamor_sync.c
index d3d64a925..5e158c33a 100644
--- a/glamor/glamor_sync.c
+++ b/glamor/glamor_sync.c
@@ -53,7 +53,7 @@ glamor_sync_fence_set_triggered (SyncFence *fence)
/* Flush pending rendering operations */
glamor_make_current(glamor);
- glFinish();
+ glFlush();
fence->funcs.SetTriggered = glamor_fence->set_triggered;
fence->funcs.SetTriggered(fence);