st/dri/sw: Fix incorrect cast
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Wed, 2 Nov 2011 14:56:23 +0000 (15:56 +0100)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Wed, 2 Nov 2011 14:56:23 +0000 (15:56 +0100)
Missed one casting error due to rebase for commit
98aa2a8f725e44aec8bd998fe436a134e94f13bb.

src/gallium/state_trackers/dri/sw/drisw.c

index f336fe075f85172038c731dcd56c55f8e3fd43d4..f32a268e46ffad5fb7df889a7d723786979b13d0 100644 (file)
@@ -234,7 +234,7 @@ drisw_update_tex_buffer(struct dri_drawable *drawable,
                         struct dri_context *ctx,
                         struct pipe_resource *res)
 {
-   struct pipe_context *pipe = ((struct st_context *) ctx)->st->pipe;
+   struct pipe_context *pipe = ((struct st_context *) ctx->st)->pipe;
    __DRIdrawable *dPriv = drawable->dPriv;
    __DRIscreen *sPriv = dPriv->driScreenPriv;
    int x, y, w, h;