st/dri2: Flush FRAME instead of RENDER_CACHE on buffer invalidation.

This commit is contained in:
Francisco Jerez 2010-02-16 18:17:11 +01:00
parent f455ca6490
commit 52e3f0949d
1 changed files with 2 additions and 2 deletions

View File

@ -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)