diff options
author | Emil Velikov <[email protected]> | 2014-02-12 21:00:02 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-04-28 19:13:38 +0100 |
commit | 51e3569573a7b3f8da0df093836761003fcdc414 (patch) | |
tree | 9cc465ef8e83e19d79ea0f01eaea8fb20005fdc1 /src/glx | |
parent | ecfe986120adb2c574cb03bea318eae96e564924 (diff) |
glx/tests: explicitly set __DRI2rendererQueryExtension members
While we're here use the typcast'ed name and constify.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/tests/query_renderer_implementation_unittest.cpp | 8 |
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() |