Mesa (master): st/dri: Use flush function of old context not new
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Tue Apr 27 11:30:15 UTC 2010
Module: Mesa
Branch: master
Commit: ae79e778f7fae99812ade79ecf5cf3c783d2a93b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae79e778f7fae99812ade79ecf5cf3c783d2a93b
Author: Jakob Bornecrantz <jakob at vmware.com>
Date: Mon Apr 26 14:59:46 2010 +0100
st/dri: Use flush function of old context not new
---
.../state_trackers/dri/common/dri_context.c | 2 +-
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 0e5ab5b..a144247 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;
More information about the mesa-commit
mailing list