dri_util: explicitly set __DRIswrastExtension members.
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Feb 2014 17:08:43 +0000 (17:08 +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 d09d50ad1dd7657a63833fdb701c29a71a4cce3c..0aa997e227e3af4ecdae3068dafe7abc8fd18452 100644 (file)
@@ -768,12 +768,13 @@ const __DRIdri2Extension driDRI2Extension = {
 };
 
 const __DRIswrastExtension driSWRastExtension = {
-    { __DRI_SWRAST, 4 },
-    driSWRastCreateNewScreen,
-    driCreateNewDrawable,
-    driCreateNewContextForAPI,
-    driCreateContextAttribs,
-    driSWRastCreateNewScreen2,
+    .base = { __DRI_SWRAST, 4 },
+
+    .createNewScreen            = driSWRastCreateNewScreen,
+    .createNewDrawable          = driCreateNewDrawable,
+    .createNewContextForAPI     = driCreateNewContextForAPI,
+    .createContextAttribs       = driCreateContextAttribs,
+    .createNewScreen2           = driSWRastCreateNewScreen2,
 };
 
 const __DRI2configQueryExtension dri2ConfigQueryExtension = {