i965: Remove artificial dependency between math instructions.
[mesa.git] / src / mesa / state_tracker / st_cb_eglimage.c
index 561967d6c1c67295e13cc99099cb6b64ac05ca6e..34eb809591895ba7c1e65946d424777fbb11ef5e 100644 (file)
@@ -124,7 +124,7 @@ st_bind_surface(struct gl_context *ctx, GLenum target,
 
    /* FIXME create a non-default sampler view from the pipe_surface? */
    pipe_resource_reference(&stObj->pt, ps->texture);
-   pipe_sampler_view_reference(&stObj->sampler_view, NULL);
+   st_texture_release_all_sampler_views(stObj);
    pipe_resource_reference(&stImage->pt, stObj->pt);
 
    stObj->width0 = ps->width;