glx/tests: Partially revert commit 51e3569573a7b3f8da0df093836761003fcdc414
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 May 2014 21:30:43 +0000 (22:30 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 10 May 2014 01:08:36 +0000 (02:08 +0100)
C++ does not support designated initializers, thus compilation
is not guaranteed to succeed. Surprisingly gcc 4.6.3 fails to
build the code, while version 4.9.0 compiles it without a hitch.

Cc: "10.2" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78403
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
src/glx/tests/query_renderer_implementation_unittest.cpp

index 6ec4c4f803048dcc68da5a9ba1744086af6beb80..7f8f3018640fbea60723589bcc9033fe3c2c8b6a 100644 (file)
@@ -141,10 +141,10 @@ fake_queryString(__DRIscreen *screen, int attribute, const char **val)
 }
 
 static const __DRI2rendererQueryExtension rendererQueryExt = {
-   .base = { __DRI2_RENDERER_QUERY, 1 },
+   { __DRI2_RENDERER_QUERY, 1 },
 
-   .queryInteger = fake_queryInteger,
-   .queryString = fake_queryString
+   fake_queryInteger,
+   fake_queryString
 };
 
 void dri2_query_renderer_string_test::SetUp()