diff options
author | Marek Olšák <[email protected]> | 2012-11-13 17:06:37 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-12-02 00:15:00 +0100 |
commit | 5b7e9b73603ce5fb48cc30896df277df0ae89856 (patch) | |
tree | 7840be63f07549f565283a81e41e7d279a9433e4 /src/glx/drisw_glx.c | |
parent | 8ad9d42b338c6684930b7898734f9070b6368172 (diff) |
glx: move the glFlush call one layer down
Diffstat (limited to 'src/glx/drisw_glx.c')
-rw-r--r-- | src/glx/drisw_glx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c index 014296b40ed..832e9642ea9 100644 --- a/src/glx/drisw_glx.c +++ b/src/glx/drisw_glx.c @@ -551,7 +551,8 @@ driswCreateDrawable(struct glx_screen *base, XID xDrawable, static int64_t driswSwapBuffers(__GLXDRIdrawable * pdraw, - int64_t target_msc, int64_t divisor, int64_t remainder) + int64_t target_msc, int64_t divisor, int64_t remainder, + Bool flush) { struct drisw_drawable *pdp = (struct drisw_drawable *) pdraw; struct drisw_screen *psc = (struct drisw_screen *) pdp->base.psc; @@ -560,6 +561,10 @@ driswSwapBuffers(__GLXDRIdrawable * pdraw, (void) divisor; (void) remainder; + if (flush) { + glFlush(); + } + (*psc->core->swapBuffers) (pdp->driDrawable); return 0; |