gallium: need to finish, not flush, in st_copy_texsubimage()
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 17 Sep 2008 16:22:38 +0000 (10:22 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 17 Sep 2008 16:23:00 +0000 (10:23 -0600)
src/mesa/state_tracker/st_cb_texture.c

index 2ba3766939562b0b456d3386a3c7304674681c74..2e1ad93942be711ee91ff5ccc4e94bf3beb36556 100644 (file)
@@ -1053,7 +1053,8 @@ st_copy_texsubimage(GLcontext *ctx,
    GLboolean use_fallback = GL_TRUE;
    GLboolean matching_base_formats;
 
-   st_flush(ctx->st, PIPE_FLUSH_RENDER_CACHE, NULL);
+   /* any rendering in progress must complete before we grab the fb image */
+   st_finish(ctx->st);
 
    /* determine if copying depth or color data */
    if (texBaseFormat == GL_DEPTH_COMPONENT) {