diff options
author | Michel Dänzer <michel@daenzer.net> | 2006-09-28 14:02:05 +0000 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2006-09-28 14:02:05 +0000 |
commit | 24bb3b399847bdb11f0008820c2c1bad1e21d499 (patch) | |
tree | 329235d2d35cd0d7b7cf432e636ac06c9868c695 /src/mesa/drivers/dri/r200 | |
parent | 1d914fe465fd9ac4775b88481c3a84ea398ce66e (diff) |
Make driDrawableInitVBlank() initialize the sequence number.
This prevents the first wait for vertical blank from timing out when the X
server has been running for a long time.
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_context.c b/src/mesa/drivers/dri/r200/r200_context.c index 7a8f270160..37abaa38de 100644 --- a/src/mesa/drivers/dri/r200/r200_context.c +++ b/src/mesa/drivers/dri/r200/r200_context.c @@ -694,7 +694,8 @@ r200MakeCurrent( __DRIcontextPrivate *driContextPriv, fprintf(stderr, "%s ctx %p\n", __FUNCTION__, (void *)newCtx->glCtx); if ( newCtx->dri.drawable != driDrawPriv ) { - driDrawableInitVBlank( driDrawPriv, newCtx->vblank_flags ); + driDrawableInitVBlank( driDrawPriv, newCtx->vblank_flags, + &newCtx->vbl_seq ); newCtx->dri.drawable = driDrawPriv; r200UpdateWindow( newCtx->glCtx ); r200UpdateViewportOffset( newCtx->glCtx ); |