glx/dri_common: use the implemented version of __DRIsystemTimeExtension
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Feb 2014 19:50:53 +0000 (19:50 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 23 Feb 2014 16:42:17 +0000 (16:42 +0000)
... over the one provided by the headers.
Explicitly set extension members to improve clarity.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glx/dri_common.c

index 012c8f4ec3209be9de1790c3bbf8ffd52bf2b122..8bf47054a3259beb89e1b7d5a0f534a6deeb5142 100644 (file)
@@ -192,9 +192,10 @@ __driGetMSCRate(__DRIdrawable *draw,
 }
 
 _X_HIDDEN const __DRIsystemTimeExtension systemTimeExtension = {
-   {__DRI_SYSTEM_TIME, __DRI_SYSTEM_TIME_VERSION},
-   __glXGetUST,
-   __driGetMSCRate
+   .base = {__DRI_SYSTEM_TIME, 1 },
+
+   .getUST              = __glXGetUST,
+   .getMSCRate          = __driGetMSCRate
 };
 
 #define __ATTRIB(attrib, field) \