Lines Matching refs:context

176     DirectFB_GLContext *context;  in DirectFB_GL_CreateContext()  local
178 SDL_DFB_ALLOC_CLEAR(context, sizeof(DirectFB_GLContext)); in DirectFB_GL_CreateContext()
181 &context->context)); in DirectFB_GL_CreateContext()
183 if (!context->context) in DirectFB_GL_CreateContext()
186 context->is_locked = 0; in DirectFB_GL_CreateContext()
187 context->sdl_window = window; in DirectFB_GL_CreateContext()
189 context->next = _this->gl_data->firstgl; in DirectFB_GL_CreateContext()
190 _this->gl_data->firstgl = context; in DirectFB_GL_CreateContext()
192 SDL_DFB_CHECK(context->context->Unlock(context->context)); in DirectFB_GL_CreateContext()
194 if (DirectFB_GL_MakeCurrent(_this, window, context) < 0) { in DirectFB_GL_CreateContext()
195 DirectFB_GL_DeleteContext(_this, context); in DirectFB_GL_CreateContext()
199 return context; in DirectFB_GL_CreateContext()
206 DirectFB_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context) in DirectFB_GL_MakeCurrent() argument
208 DirectFB_GLContext *ctx = (DirectFB_GLContext *) context; in DirectFB_GL_MakeCurrent()
214 SDL_DFB_CHECKERR(p->context->Unlock(p->context)); in DirectFB_GL_MakeCurrent()
221 SDL_DFB_CHECKERR(ctx->context->Lock(ctx->context)); in DirectFB_GL_MakeCurrent()
258 SDL_DFB_CHECKERR(p->context->Unlock(p->context)); in DirectFB_GL_SwapWindow()
269 DirectFB_GL_DeleteContext(_THIS, SDL_GLContext context) in DirectFB_GL_DeleteContext() argument
271 DirectFB_GLContext *ctx = (DirectFB_GLContext *) context; in DirectFB_GL_DeleteContext()
275 SDL_DFB_CHECK(ctx->context->Unlock(ctx->context)); in DirectFB_GL_DeleteContext()
276 SDL_DFB_RELEASE(ctx->context); in DirectFB_GL_DeleteContext()
297 SDL_DFB_CHECK(p->context->Unlock(p->context)); in DirectFB_GL_FreeWindowContexts()
298 SDL_DFB_RELEASE(p->context); in DirectFB_GL_FreeWindowContexts()
312 &p->context)); in DirectFB_GL_ReAllocWindowContexts()
314 SDL_DFB_CHECK(p->context->Lock(p->context)); in DirectFB_GL_ReAllocWindowContexts()