gallium dri st: Propagate the drawable info when we bind to new drawables.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
This commit is contained in:
Thomas Hellstrom
2009-04-28 14:43:41 +02:00
parent 8cfa6546c9
commit 2c994ad3cb
+8 -3
View File
@@ -158,9 +158,14 @@ dri_make_current(__DRIcontextPrivate * cPriv,
*/
screen->dummyContext = ctx;
/* used in dri_flush_frontbuffer */
ctx->dPriv = driDrawPriv;
ctx->rPriv = driReadPriv;
if (ctx->dPriv != driDrawPriv) {
ctx->dPriv = driDrawPriv;
ctx->d_stamp = driDrawPriv->lastStamp - 1;
}
if (ctx->rPriv != driReadPriv) {
ctx->rPriv = driReadPriv;
ctx->r_stamp = driReadPriv->lastStamp - 1;
}
st_make_current(ctx->st, draw->stfb, read->stfb);