[cogl] cogl-gpu-info.c: Avoid using named initializers



commit 5a5659f9861dfe7a4808f2a5284de8fe6175bec2
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jul 24 17:39:21 2013 +0800

    cogl-gpu-info.c: Avoid using named initializers
    
    Unfortunately named initializers is a feature that is not supported by
    all compilers (such as pre-2013 Visual Studio) so avoid using that.
    
    Reviewed-by: Robert Bragg <robert linux intel com>

 cogl/cogl-gpu-info.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/cogl/cogl-gpu-info.c b/cogl/cogl-gpu-info.c
index 2aae9fc..e3e3d66 100644
--- a/cogl/cogl-gpu-info.c
+++ b/cogl/cogl-gpu-info.c
@@ -459,9 +459,10 @@ UNIT_TEST (check_mesa_driver_package_parser,
            0, /* no requirements */
            0 /* no failure cases */)
 {
-  const CoglGpuInfoStrings test_strings[] = {
-    { .version_string = "3.1 Mesa 9.2-devel15436ad" },
-    { .version_string = "3.1 (Core Profile) Mesa 9.2.0-devel (git-15436ad)" }
+  /* renderer_string, version_string, vendor_string;*/
+  const CoglGpuInfoStrings test_strings[2] = {
+    { NULL, "3.1 Mesa 9.2-devel15436ad", NULL },
+    { NULL, "3.1 (Core Profile) Mesa 9.2.0-devel (git-15436ad)", NULL }
   };
   int i;
   int version;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]