aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-04-26 14:59:46 +0100
committerJakob Bornecrantz <[email protected]>2010-04-27 12:17:11 +0100
commitae79e778f7fae99812ade79ecf5cf3c783d2a93b (patch)
treec4550ebfe15344aff3e57fffa962a44537c8b3e6 /src/gallium/state_trackers
parentb7fa7e8da6239333bd9327eac1a3015c668d215b (diff)
st/dri: Use flush function of old context not new
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/dri/common/dri_context.c2
1 files changed, 1 insertions, 1 deletions
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;