st/mesa: Pass in correct sampler view object to blitter.
authorMichal Krol <michal@vmware.com>
Mon, 15 Mar 2010 14:03:44 +0000 (15:03 +0100)
committerMichal Krol <michal@vmware.com>
Mon, 15 Mar 2010 14:03:44 +0000 (15:03 +0100)
src/mesa/state_tracker/st_cb_texture.c

index 7fcd1e9ca749a0c5282fa12fb64c7646ed5f0e2d..0c518a7e031e0e53d2f5186918243f7a948594ec 100644 (file)
@@ -1598,7 +1598,7 @@ st_copy_texsubimage(GLcontext *ctx,
          }
          util_blit_pixels_writemask(ctx->st->blit,
                                     strb->surface,
-                                    st_get_stobj_sampler_view(stObj),
+                                    st_renderbuffer_get_sampler_view(strb, pipe),
                                     srcX, srcY0,
                                     srcX + width, srcY1,
                                     dest_surface,