Lines Matching defs:ctx

131     static inline egl_context_t* context(EGLContext ctx) {
132 ogles_context_t* const gl = static_cast<ogles_context_t*>(ctx);
149 EGLContext ctx;
176 : magic(MAGIC), dpy(dpy), config(config), ctx(0)
1582 if (surface->ctx) {
1585 surface->ctx = 0;
1674 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx)
1678 egl_context_t* c = egl_context_t::context(ctx);
1681 ogles_uninit((ogles_context_t*)ctx);
1686 EGLSurface read, EGLContext ctx)
1709 if ((read == EGL_NO_SURFACE && draw == EGL_NO_SURFACE) && (ctx != EGL_NO_CONTEXT))
1712 if ((read != EGL_NO_SURFACE || draw != EGL_NO_SURFACE) && (ctx == EGL_NO_CONTEXT))
1715 if (ctx == EGL_NO_CONTEXT) {
1719 egl_context_t* c = egl_context_t::context(ctx);
1722 if ((d && d->ctx && d->ctx != ctx) ||
1723 (r && r->ctx && r->ctx != ctx)) {
1729 ogles_context_t* gl = (ogles_context_t*)ctx;
1731 if (ctx) {
1732 egl_context_t* c = egl_context_t::context(ctx);
1763 d->ctx = ctx;
1768 r->ctx = ctx;
1780 d->ctx = EGL_NO_CONTEXT;
1785 r->ctx = EGL_NO_CONTEXT;
1808 EGLContext ctx = (EGLContext)getGlThreadSpecific();
1809 if (ctx == EGL_NO_CONTEXT) return EGL_NO_SURFACE;
1810 egl_context_t* c = egl_context_t::context(ctx);
1824 EGLContext ctx = (EGLContext)getGlThreadSpecific();
1825 if (ctx == EGL_NO_CONTEXT) return EGL_NO_DISPLAY;
1826 egl_context_t* c = egl_context_t::context(ctx);
1830 EGLBoolean eglQueryContext( EGLDisplay dpy, EGLContext ctx,
1835 egl_context_t* c = egl_context_t::context(ctx);
1870 if (d->ctx != EGL_NO_CONTEXT) {
1871 d->bindDrawSurface((ogles_context_t*)d->ctx);
1875 egl_context_t* c = egl_context_t::context(d->ctx);
1877 d->bindReadSurface((ogles_context_t*)d->ctx);
2021 EGLImageKHR eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target,
2027 if (ctx != EGL_NO_CONTEXT) {