st/dri: Use flush function of old context not new

This commit is contained in:
Jakob Bornecrantz
2010-04-26 14:59:46 +01:00
parent b7fa7e8da6
commit ae79e778f7
@@ -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;