dri_util: explicitly set __DRIcopySubBufferExtension members
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Feb 2014 17:17:28 +0000 (17:17 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 23 Feb 2014 16:42:15 +0000 (16:42 +0000)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/common/dri_util.c

index 0aa997e227e3af4ecdae3068dafe7abc8fd18452..0873927de057a2c546228efb80030e1d4a5cd0e0 100644 (file)
@@ -893,6 +893,7 @@ static void driCopySubBuffer(__DRIdrawable *pdp, int x, int y,
 
 /* for swrast only */
 const __DRIcopySubBufferExtension driCopySubBufferExtension = {
-   { __DRI_COPY_SUB_BUFFER, 1 },
-   .copySubBuffer = driCopySubBuffer,
+   .base = { __DRI_COPY_SUB_BUFFER, 1 },
+
+   .copySubBuffer               = driCopySubBuffer,
 };