mesa/st: restore flush to copy_texsubimage (was previously finish)
authorKeith Whitwell <keithw@vmware.com>
Thu, 14 May 2009 09:26:56 +0000 (10:26 +0100)
committerKeith Whitwell <keithw@vmware.com>
Tue, 2 Jun 2009 03:34:44 +0000 (20:34 -0700)
Need a flush here even though the original finish was overkill.

src/mesa/state_tracker/st_cb_texture.c

index aaed155925d49b80bcaf02336e49e7896a9c3e91..14b78d1253944e8140b892a5fd2a7a5441f5bb3b 100644 (file)
@@ -1317,6 +1317,9 @@ st_copy_texsubimage(GLcontext *ctx,
    GLboolean use_fallback = GL_TRUE;
    GLboolean matching_base_formats;
 
+   /* any rendering in progress must flushed before we grab the fb image */
+   st_flush(ctx->st, PIPE_FLUSH_RENDER_CACHE, NULL);
+
    /* make sure finalize_textures has been called? 
     */
    if (0) st_validate_state(ctx->st);