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>

(cherry picked from commit 5a5659f9861dfe7a4808f2a5284de8fe6175bec2)
This commit is contained in:
Chun-wei Fan 2013-07-24 17:39:21 +08:00 committed by Robert Bragg
parent 45288c5d6d
commit 00b3e21f44

View File

@ -459,9 +459,10 @@ UNIT_TEST (check_mesa_driver_package_parser,
0, /* no requirements */ 0, /* no requirements */
0 /* no failure cases */) 0 /* no failure cases */)
{ {
const CoglGpuInfoStrings test_strings[] = { /* renderer_string, version_string, vendor_string;*/
{ .version_string = "3.1 Mesa 9.2-devel15436ad" }, const CoglGpuInfoStrings test_strings[2] = {
{ .version_string = "3.1 (Core Profile) Mesa 9.2.0-devel (git-15436ad)" } { NULL, "3.1 Mesa 9.2-devel15436ad", NULL },
{ NULL, "3.1 (Core Profile) Mesa 9.2.0-devel (git-15436ad)", NULL }
}; };
int i; int i;
int version; int version;