summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-06-21 13:25:56 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-06-21 14:57:27 +0200
commitf0c03ea6c7f6aafe73ca637e9e3bb6ce00f6a7b4 (patch)
tree97b22c8faee1e6c544f6ed58d5497ce0ce25dc47
parente251b3903a6aadd49cec6a9ce1ce466e3fcbbdcd (diff)
st/dri: Invalidate drawables on context switchinvalidate-2
-rw-r--r--src/gallium/state_trackers/dri/common/dri_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c
index e23c1bcafa..6303f05821 100644
--- a/src/gallium/state_trackers/dri/common/dri_context.c
+++ b/src/gallium/state_trackers/dri/common/dri_context.c
@@ -191,6 +191,11 @@ dri_make_current(__DRIcontext * cPriv,
read->texture_stamp = driReadPriv->lastStamp - 1;
}
+ if (old_st && old_st != ctx->st) {
+ ctx->st->notify_invalid_framebuffer(ctx->st, &draw->base);
+ if (draw != read)
+ ctx->st->notify_invalid_framebuffer(ctx->st, &read->base);
+ }
ctx->stapi->make_current(ctx->stapi, ctx->st, &draw->base, &read->base);
return GL_TRUE;