From 24bb3b399847bdb11f0008820c2c1bad1e21d499 Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Thu, 28 Sep 2006 14:02:05 +0000 Subject: 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. --- src/mesa/drivers/dri/r300/radeon_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/r300') diff --git a/src/mesa/drivers/dri/r300/radeon_context.c b/src/mesa/drivers/dri/r300/radeon_context.c index 463b3cf85b1..bfedae4dbdb 100644 --- a/src/mesa/drivers/dri/r300/radeon_context.c +++ b/src/mesa/drivers/dri/r300/radeon_context.c @@ -285,7 +285,8 @@ GLboolean radeonMakeCurrent(__DRIcontextPrivate * driContextPriv, if (radeon->dri.drawable != driDrawPriv) { driDrawableInitVBlank(driDrawPriv, - radeon->vblank_flags); + radeon->vblank_flags, + &radeon->vbl_seq); radeon->dri.drawable = driDrawPriv; r300UpdateWindow(radeon->glCtx); -- cgit v1.2.3