Mesa (master): st/dri/sw: Fix incorrect cast

Benjamin Franzke bnf at kemper.freedesktop.org
Wed Nov 2 14:58:32 UTC 2011


Module: Mesa
Branch: master
Commit: 31156c07b0292e477fa0d1f11fe7a318b6eda254
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=31156c07b0292e477fa0d1f11fe7a318b6eda254

Author: Benjamin Franzke <benjaminfranzke at googlemail.com>
Date:   Wed Nov  2 15:56:23 2011 +0100

st/dri/sw: Fix incorrect cast

Missed one casting error due to rebase for commit
98aa2a8f725e44aec8bd998fe436a134e94f13bb.

---

 src/gallium/state_trackers/dri/sw/drisw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/dri/sw/drisw.c b/src/gallium/state_trackers/dri/sw/drisw.c
index f336fe0..f32a268 100644
--- a/src/gallium/state_trackers/dri/sw/drisw.c
+++ b/src/gallium/state_trackers/dri/sw/drisw.c
@@ -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;




More information about the mesa-commit mailing list