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 <imirkin@alum.mit.edu>
This commit is contained in:
@@ -485,6 +485,16 @@ struct st_api
|
||||
*/
|
||||
void (*destroy)(struct st_api *stapi);
|
||||
|
||||
/**
|
||||
* Query supported OpenGL versions. (if applicable)
|
||||
* The format is (major*10+minor).
|
||||
*/
|
||||
void (*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);
|
||||
|
||||
/**
|
||||
* Return an API entry point.
|
||||
*
|
||||
|
Reference in New Issue
Block a user