glx/dri: use the implemented version of __DRIdamageExtension
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Feb 2014 19:53:52 +0000 (19:53 +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_glx.c

index 859375013f1739e2bff2dcd6dde525dcde4e500a..3b7502d1b01dedbfbad04b47053106678269eb46 100644 (file)
@@ -271,8 +271,9 @@ __glXReportDamage(__DRIdrawable * driDraw,
 }
 
 static const __DRIdamageExtension damageExtension = {
-   {__DRI_DAMAGE, __DRI_DAMAGE_VERSION},
-   __glXReportDamage,
+   .base = {__DRI_DAMAGE, 1 },
+
+   .reportDamage        = __glXReportDamage,
 };
 
 #endif