Lines Matching refs:stapi
78 struct st_api *stapi = NULL; in load_gl() local
87 stapi = create_api(); in load_gl()
89 if (!stapi) { in load_gl()
94 return stapi; in load_gl()
102 struct st_api *stapi; in egl_st_load_gl() local
104 stapi = load_gl(module, symbol); in egl_st_load_gl()
107 if (!stapi) { in egl_st_load_gl()
113 stapi = load_gl(module, symbol); in egl_st_load_gl()
117 if (!stapi) in egl_st_load_gl()
120 return stapi; in egl_st_load_gl()
128 struct st_api *stapi = NULL; in egl_st_create_api() local
134 stapi = egl_st_load_gl(); in egl_st_create_api()
136 stapi = st_gl_api_create(); in egl_st_create_api()
142 stapi = (struct st_api *) vg_api_get(); in egl_st_create_api()
150 return stapi; in egl_st_create_api()
154 egl_st_destroy_api(struct st_api *stapi) in egl_st_destroy_api() argument
157 boolean is_gl = (stapi->api == ST_API_OPENGL); in egl_st_destroy_api()
159 stapi->destroy(stapi); in egl_st_destroy_api()
166 stapi->destroy(stapi); in egl_st_destroy_api()