[Mesa-dev] [PATCH 13/15] st/mesa: use c99 initializer for st_gl_api
Brian Paul
brianp at vmware.com
Thu Jun 9 14:18:28 UTC 2016
Named initializers are OK with MSVC 2013 so this should be fine.
-Brian
On 06/09/2016 04:50 AM, Marek Olšák wrote:
> I think you need VMWare's permission to push this, as it depends on
> what MSVC can do.
>
> Marek
>
> On Tue, Jun 7, 2016 at 6:33 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>> From: Emil Velikov <emil.velikov at collabora.com>
>>
>> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
>> ---
>> src/mesa/state_tracker/st_manager.c | 26 +++++++++++++-------------
>> 1 file changed, 13 insertions(+), 13 deletions(-)
>>
>> diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
>> index 5e82f4c..b204658 100644
>> --- a/src/mesa/state_tracker/st_manager.c
>> +++ b/src/mesa/state_tracker/st_manager.c
>> @@ -955,19 +955,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 *
>> --
>> 2.8.2
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.freedesktop.org_mailman_listinfo_mesa-2Ddev&d=CwIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=T0t4QG7chq2ZwJo6wilkFznRSFy-8uDKartPGbomVj8&m=pi64NkfusqbaS4FQeToC5gbnZAPFNABW0nq23e9Zx9k&s=QpNwfFWFzlWRVlrLZT-XcjWlHYIbBDBAItEx_RAkmkM&e=
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.freedesktop.org_mailman_listinfo_mesa-2Ddev&d=CwIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=T0t4QG7chq2ZwJo6wilkFznRSFy-8uDKartPGbomVj8&m=pi64NkfusqbaS4FQeToC5gbnZAPFNABW0nq23e9Zx9k&s=QpNwfFWFzlWRVlrLZT-XcjWlHYIbBDBAItEx_RAkmkM&e=
>
More information about the mesa-dev
mailing list