summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/vblank.h
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2006-09-28 14:02:05 +0000
committerMichel Dänzer <[email protected]>2006-09-28 14:02:05 +0000
commit24bb3b399847bdb11f0008820c2c1bad1e21d499 (patch)
tree329235d2d35cd0d7b7cf432e636ac06c9868c695 /src/mesa/drivers/dri/common/vblank.h
parent1d914fe465fd9ac4775b88481c3a84ea398ce66e (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/common/vblank.h')
-rw-r--r--src/mesa/drivers/dri/common/vblank.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/vblank.h b/src/mesa/drivers/dri/common/vblank.h
index 3dc965def1a..2663956858d 100644
--- a/src/mesa/drivers/dri/common/vblank.h
+++ b/src/mesa/drivers/dri/common/vblank.h
@@ -47,7 +47,8 @@ extern int driGetMSC32( __DRIscreenPrivate * priv, int64_t * count );
extern int driWaitForMSC32( __DRIdrawablePrivate *priv,
int64_t target_msc, int64_t divisor, int64_t remainder, int64_t * msc );
extern GLuint driGetDefaultVBlankFlags( const driOptionCache *optionCache );
-extern void driDrawableInitVBlank ( __DRIdrawablePrivate *priv, GLuint flags );
+extern void driDrawableInitVBlank ( __DRIdrawablePrivate *priv, GLuint flags,
+ GLuint *vbl_seq );
extern int driWaitForVBlank( const __DRIdrawablePrivate *priv,
GLuint * vbl_seq, GLuint flags, GLboolean * missed_deadline );