From f6537d06089f991678b2afb7033aaf07bc4c9d50 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Wed, 12 Feb 2014 19:53:52 +0000 Subject: [PATCH] glx/dri: use the implemented version of __DRIdamageExtension ... over the one provided by the headers. Explicitly set extension members to improve clarity. Signed-off-by: Emil Velikov Reviewed-by: Ian Romanick --- src/glx/dri_glx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/glx/dri_glx.c b/src/glx/dri_glx.c index 859375013f1..3b7502d1b01 100644 --- a/src/glx/dri_glx.c +++ b/src/glx/dri_glx.c @@ -271,8 +271,9 @@ __glXReportDamage(__DRIdrawable * driDraw, } static const __DRIdamageExtension damageExtension = { - {__DRI_DAMAGE, __DRI_DAMAGE_VERSION}, - __glXReportDamage, + .base = {__DRI_DAMAGE, 1 }, + + .reportDamage = __glXReportDamage, }; #endif -- 2.30.2