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:
parent
45288c5d6d
commit
00b3e21f44
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user