From ae79e778f7fae99812ade79ecf5cf3c783d2a93b Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Mon, 26 Apr 2010 14:59:46 +0100 Subject: st/dri: Use flush function of old context not new --- src/gallium/state_trackers/dri/common/dri_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/dri/common') diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c index 0e5ab5b5198..a144247d0c6 100644 --- a/src/gallium/state_trackers/dri/common/dri_context.c +++ b/src/gallium/state_trackers/dri/common/dri_context.c @@ -151,7 +151,7 @@ dri_make_current(__DRIcontext * cPriv, old_st = stapi->get_current(stapi); if (old_st && old_st != ctx->st) - ctx->st->flush(old_st, PIPE_FLUSH_RENDER_CACHE, NULL); + old_st->flush(old_st, PIPE_FLUSH_RENDER_CACHE, NULL); ++ctx->bind_count; -- cgit v1.2.3