diff options
author | Michel Dänzer <[email protected]> | 2006-09-28 14:02:05 +0000 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2006-09-28 14:02:05 +0000 |
commit | 24bb3b399847bdb11f0008820c2c1bad1e21d499 (patch) | |
tree | 329235d2d35cd0d7b7cf432e636ac06c9868c695 /src/mesa/drivers/dri/mga | |
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/mga')
-rw-r--r-- | src/mesa/drivers/dri/mga/mga_xmesa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/mga/mga_xmesa.c b/src/mesa/drivers/dri/mga/mga_xmesa.c index 6450340a48c..73bcfcce738 100644 --- a/src/mesa/drivers/dri/mga/mga_xmesa.c +++ b/src/mesa/drivers/dri/mga/mga_xmesa.c @@ -878,7 +878,8 @@ mgaMakeCurrent(__DRIcontextPrivate *driContextPriv, mgaContextPtr mmesa = (mgaContextPtr) driContextPriv->driverPrivate; if (mmesa->driDrawable != driDrawPriv) { - driDrawableInitVBlank( driDrawPriv, mmesa->vblank_flags ); + driDrawableInitVBlank( driDrawPriv, mmesa->vblank_flags, + &mmesa->vbl_seq ); mmesa->driDrawable = driDrawPriv; mmesa->dirty = ~0; mmesa->dirty_cliprects = (MGA_FRONT|MGA_BACK); |