diff options
author | Marek Olšák <[email protected]> | 2014-08-03 02:54:52 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-08-11 21:53:57 +0200 |
commit | c6cbde5008e27cccb06411146bc673835991ae91 (patch) | |
tree | ab62bd9fbe95d9398e8300a06deaa65ba6128086 /src/mesa/state_tracker/st_manager.c | |
parent | 0127d26e6c25974a84102fba2f556e260ccbcaeb (diff) |
gallium/stapi: move setting GL versions to the state tracker
All flags are set for st/mesa, so the state tracker doesn't have to check
them.
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_manager.c')
-rw-r--r-- | src/mesa/state_tracker/st_manager.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index 706af7fd13d..dd9597be766 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -910,6 +910,19 @@ st_manager_add_color_renderbuffer(struct st_context *st, return TRUE; } +static void +st_api_query_versions(struct st_api *stapi, struct st_manager *sm, + int *gl_core_version, + int *gl_compat_version, + int *gl_es1_version, + int *gl_es2_version) +{ + *gl_core_version = 33; + *gl_compat_version = 30; + *gl_es1_version = 11; + *gl_es2_version = 30; +} + static const struct st_api st_gl_api = { "Mesa " PACKAGE_VERSION, ST_API_OPENGL, @@ -920,6 +933,7 @@ static const struct st_api st_gl_api = { 0, ST_API_FEATURE_MS_VISUALS_MASK, st_api_destroy, + st_api_query_versions, st_api_get_proc_address, st_api_create_context, st_api_make_current, |