summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/glx/tests/query_renderer_implementation_unittest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/glx/tests/query_renderer_implementation_unittest.cpp b/src/glx/tests/query_renderer_implementation_unittest.cpp
index 35b3972d57f..6ec4c4f8030 100644
--- a/src/glx/tests/query_renderer_implementation_unittest.cpp
+++ b/src/glx/tests/query_renderer_implementation_unittest.cpp
@@ -140,11 +140,11 @@ fake_queryString(__DRIscreen *screen, int attribute, const char **val)
return -1;
}
-struct __DRI2rendererQueryExtensionRec rendererQueryExt = {
- { __DRI2_RENDERER_QUERY, 1 },
+static const __DRI2rendererQueryExtension rendererQueryExt = {
+ .base = { __DRI2_RENDERER_QUERY, 1 },
- fake_queryInteger,
- fake_queryString
+ .queryInteger = fake_queryInteger,
+ .queryString = fake_queryString
};
void dri2_query_renderer_string_test::SetUp()