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:
Marek Olšák
2014-08-03 02:54:52 +02:00
parent 0127d26e6c
commit c6cbde5008
4 changed files with 39 additions and 12 deletions

View File

@@ -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.
*