[Mesa-dev] [PATCH 27/38] glx/tests: explicitly set __DRI2rendererQueryExtension members
Emil Velikov
emil.l.velikov at gmail.com
Wed Feb 12 17:17:53 PST 2014
While we're here use the typcast'ed name and constify.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/glx/tests/query_renderer_implementation_unittest.cpp | 8 ++++----
1 file 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 4749089..bfe21f6 100644
--- a/src/glx/tests/query_renderer_implementation_unittest.cpp
+++ b/src/glx/tests/query_renderer_implementation_unittest.cpp
@@ -139,11 +139,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()
--
1.8.5.4
More information about the mesa-dev
mailing list