Lines Matching refs:egl_context
840 EGLContext egl_context, share_context = EGL_NO_CONTEXT; in SDL_EGL_CreateContext() local
939 egl_context = _this->egl_data->eglCreateContext(_this->egl_data->egl_display, in SDL_EGL_CreateContext()
943 if (egl_context == EGL_NO_CONTEXT) { in SDL_EGL_CreateContext()
950 if (SDL_EGL_MakeCurrent(_this, egl_surface, egl_context) < 0) { in SDL_EGL_CreateContext()
956 SDL_EGL_DeleteContext(_this, egl_context); in SDL_EGL_CreateContext()
994 return (SDL_GLContext) egl_context; in SDL_EGL_CreateContext()
1000 EGLContext egl_context = (EGLContext) context; in SDL_EGL_MakeCurrent() local
1009 if (!egl_context || (!egl_surface && !_this->gl_allow_no_surface)) { in SDL_EGL_MakeCurrent()
1013 egl_surface, egl_surface, egl_context)) { in SDL_EGL_MakeCurrent()
1062 EGLContext egl_context = (EGLContext) context; in SDL_EGL_DeleteContext() local
1069 if (egl_context != NULL && egl_context != EGL_NO_CONTEXT) { in SDL_EGL_DeleteContext()
1070 _this->egl_data->eglDestroyContext(_this->egl_data->egl_display, egl_context); in SDL_EGL_DeleteContext()