summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-06-07 17:33:46 +0100
committerEmil Velikov <[email protected]>2016-06-13 15:31:28 +0100
commit6406bc15926b1a2f6ad62dc4a3770b0d4f484e7d (patch)
tree830f6e47520049bf214703a2c3c2e6f8c48a9a4e
parent15bc7856bf1b328cc403f464ace979b3a0afa892 (diff)
st/mesa: use c99 initializer for st_gl_api
Signed-off-by: Emil Velikov <[email protected]> Acked-by: Ian Romanick <[email protected]>
-rw-r--r--src/mesa/state_tracker/st_manager.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index eaca22a30de..7c8cb635687 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -952,19 +952,19 @@ st_api_query_versions(struct st_api *stapi, struct st_manager *sm,
}
static const struct st_api st_gl_api = {
- "Mesa " PACKAGE_VERSION,
- ST_API_OPENGL,
- ST_PROFILE_DEFAULT_MASK |
- ST_PROFILE_OPENGL_CORE_MASK |
- ST_PROFILE_OPENGL_ES1_MASK |
- ST_PROFILE_OPENGL_ES2_MASK |
- 0,
- ST_API_FEATURE_MS_VISUALS_MASK,
- st_api_destroy,
- st_api_query_versions,
- st_api_create_context,
- st_api_make_current,
- st_api_get_current,
+ .name = "Mesa " PACKAGE_VERSION,
+ .api = ST_API_OPENGL,
+ .profile_mask = ST_PROFILE_DEFAULT_MASK |
+ ST_PROFILE_OPENGL_CORE_MASK |
+ ST_PROFILE_OPENGL_ES1_MASK |
+ ST_PROFILE_OPENGL_ES2_MASK |
+ 0,
+ .feature_mask = ST_API_FEATURE_MS_VISUALS_MASK,
+ .destroy = st_api_destroy,
+ .query_versions = st_api_query_versions,
+ .create_context = st_api_create_context,
+ .make_current = st_api_make_current,
+ .get_current = st_api_get_current,
};
struct st_api *