r300g: fix crash when destroying the context on r3xx-r4xx
authorMarek Olšák <maraeo@gmail.com>
Mon, 21 Jun 2010 21:45:53 +0000 (23:45 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 21 Jun 2010 21:46:38 +0000 (23:46 +0200)
FDO bug #28652,

src/gallium/drivers/r300/r300_context.c

index ee86f8230fba1542e5987db35dc98cb7ca4f8be6..16a75aa612b9b859c3119dc18f07e7f36d2245d4 100644 (file)
@@ -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);
     }