diff options
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_gl_api.h | 2 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_manager.c | 64 |
2 files changed, 0 insertions, 66 deletions
diff --git a/src/mesa/state_tracker/st_gl_api.h b/src/mesa/state_tracker/st_gl_api.h index 57c6d9f24d..55ad778c97 100644 --- a/src/mesa/state_tracker/st_gl_api.h +++ b/src/mesa/state_tracker/st_gl_api.h @@ -3,7 +3,5 @@ #define ST_GL_API_H struct st_api *st_gl_api_create(void); -struct st_api *st_gl_api_create_es1(void); -struct st_api *st_gl_api_create_es2(void); #endif diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index 8acd0938bb..450b0453cf 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -674,22 +674,6 @@ st_api_create_context(struct st_api *stapi, struct st_manager *smapi, return &st->iface; } -static struct st_context_iface * -st_api_create_context_es1(struct st_api *stapi, struct st_manager *smapi, - const struct st_context_attribs *attribs, - struct st_context_iface *shared_stctxi) -{ - return st_api_create_context(stapi, smapi, attribs, shared_stctxi); -} - -static struct st_context_iface * -st_api_create_context_es2(struct st_api *stapi, struct st_manager *smapi, - const struct st_context_attribs *attribs, - struct st_context_iface *shared_stctxi) -{ - return st_api_create_context(stapi, smapi, attribs, shared_stctxi); -} - static boolean st_api_make_current(struct st_api *stapi, struct st_context_iface *stctxi, struct st_framebuffer_iface *stdrawi, @@ -890,56 +874,8 @@ static const struct st_api st_gl_api = { st_api_get_current, }; -static const struct st_api st_gl_api_es1 = { - ST_API_OPENGL_ES1, - ST_PROFILE_OPENGL_ES1_MASK, - st_api_destroy, - st_api_get_proc_address, - st_api_create_context_es1, - st_api_make_current, - st_api_get_current, -}; - -static const struct st_api st_gl_api_es2 = { - ST_API_OPENGL_ES2, - ST_PROFILE_OPENGL_ES2_MASK, - st_api_destroy, - st_api_get_proc_address, - st_api_create_context_es2, - st_api_make_current, - st_api_get_current, -}; - struct st_api * st_gl_api_create(void) { - (void) st_gl_api; - (void) st_gl_api_es1; - (void) st_gl_api_es2; - -#if FEATURE_GL return (struct st_api *) &st_gl_api; -#else - return NULL; -#endif -} - -struct st_api * -st_gl_api_create_es1(void) -{ -#if FEATURE_ES1 - return (struct st_api *) &st_gl_api_es1; -#else - return NULL; -#endif -} - -struct st_api * -st_gl_api_create_es2(void) -{ -#if FEATURE_ES2 - return (struct st_api *) &st_gl_api_es2; -#else - return NULL; -#endif } |