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

FDO bug #28652,
This commit is contained in:
Marek Olšák
2010-06-21 23:45:53 +02:00
parent 197636814e
commit 59df6725af
+1 -1
View 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);
}