diff options
author | Francisco Jerez <[email protected]> | 2010-02-16 18:17:11 +0100 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2010-02-17 23:15:48 +0100 |
commit | 52e3f0949d47c846e3508a135afd75c439f2c49d (patch) | |
tree | 1b2f612e02aae95eb8b42eb140b1e3ff356d959d /src/gallium | |
parent | f455ca6490fcb65781b21f81c7117bd923e250d1 (diff) |
st/dri2: Flush FRAME instead of RENDER_CACHE on buffer invalidation.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/dri/dri_drawable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/dri/dri_drawable.c b/src/gallium/state_trackers/dri/dri_drawable.c index 4d7596a831a..195ae7b8bc2 100644 --- a/src/gallium/state_trackers/dri/dri_drawable.c +++ b/src/gallium/state_trackers/dri/dri_drawable.c @@ -288,11 +288,11 @@ dri_update_buffer(struct pipe_screen *screen, void *context_private) ctx->r_stamp == *ctx->rPriv->pStamp) return; + st_flush(ctx->st, PIPE_FLUSH_FRAME, NULL); + ctx->d_stamp = *ctx->dPriv->pStamp; ctx->r_stamp = *ctx->rPriv->pStamp; - st_flush(ctx->st, PIPE_FLUSH_RENDER_CACHE, NULL); - /* Ask the X server for new renderbuffers. */ dri_get_buffers(ctx->dPriv); if (ctx->dPriv != ctx->rPriv) |