Browse Source

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

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
tags/mesa_7_5_rc1
Thomas Hellstrom 16 years ago
parent
commit
2c994ad3cb
1 changed files with 8 additions and 3 deletions
  1. 8
    3
      src/gallium/state_trackers/dri/dri_context.c

+ 8
- 3
src/gallium/state_trackers/dri/dri_context.c 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);


Loading…
Cancel
Save