OSDN Git Service

demos: Fix vsync checking in glxgears
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 6 Jul 2009 18:36:17 +0000 (11:36 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 6 Jul 2009 18:42:12 +0000 (11:42 -0700)
commit7fb4becf986872268af4ba3f62c0a85b41ef7e5d
treeca98db7229689b1d111ba6a1904edac46d5cd15d
parent1068c15c61a6c76a2da04ed3ca136f0d49abed1d
demos: Fix vsync checking in glxgears

Of course glXGetVideoSyncSGI doesn't return the swap interval.  The feature
only exists in the Mesa extension... which is the whole reason I created the
Mesa extension!  Note that the Mesa extension allows drivers to default to a
swap interval of 0.  If the Mesa extension exists, use its value.  Only
consider the SGI extension when the Mesa extension is not available.

Fixes bug #22604.
progs/xdemos/glxgears.c