gallium: Tell the driver the texture is updated when we finish rendering to it.
authorMichel Dänzer <michel@tungstengraphics.com>
Fri, 25 Apr 2008 09:34:20 +0000 (10:34 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Fri, 25 Apr 2008 09:34:20 +0000 (10:34 +0100)
src/mesa/state_tracker/st_cb_fbo.c

index b73867bb7296c69c2a23bc0c164e2e00e43472b8..69dde56e55744553af568b27a7875441798b6c45 100644 (file)
@@ -400,6 +400,10 @@ st_finish_render_texture(GLcontext *ctx,
 
    ctx->st->pipe->flush(ctx->st->pipe, PIPE_FLUSH_RENDER_CACHE, NULL);
 
+   ctx->st->pipe->texture_update(ctx->st->pipe,
+                                 st_get_texobj_texture(att->Texture),
+                                 att->CubeMapFace, 1 << att->TextureLevel);
+
    /*
    printf("FINISH RENDER TO TEXTURE surf=%p\n", strb->surface);
    */