Mesa (master): r300g: fix crash when destroying the context on r3xx-r4xx

Marek Olšák mareko at kemper.freedesktop.org
Mon Jun 21 14:47:28 PDT 2010


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Mon Jun 21 23:45:53 2010 +0200

r300g: fix crash when destroying the context on r3xx-r4xx

FDO bug #28652,

---

 src/gallium/drivers/r300/r300_context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index ee86f82..16a75aa 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -45,7 +45,7 @@ static void r300_destroy_context(struct pipe_context* context)
 
     if (r300->texkill_sampler) {
         pipe_sampler_view_reference(
-                (struct pipe_sampler_view**)r300->texkill_sampler,
+                (struct pipe_sampler_view**)&r300->texkill_sampler,
                 NULL);
     }
 



More information about the mesa-commit mailing list