Lines Matching refs:ctx
131 static inline egl_context_t* context(EGLContext ctx) { in context()
132 ogles_context_t* const gl = static_cast<ogles_context_t*>(ctx); in context()
149 EGLContext ctx; member
177 : magic(MAGIC), dpy(dpy), config(config), ctx(0), zombie(false) in egl_surface_t()
1582 if (surface->ctx) { in eglDestroySurface()
1675 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx) in eglDestroyContext() argument
1679 egl_context_t* c = egl_context_t::context(ctx); in eglDestroyContext()
1682 ogles_uninit((ogles_context_t*)ctx); in eglDestroyContext()
1687 EGLSurface read, EGLContext ctx) in eglMakeCurrent() argument
1710 if ((read == EGL_NO_SURFACE && draw == EGL_NO_SURFACE) && (ctx != EGL_NO_CONTEXT)) in eglMakeCurrent()
1713 if ((read != EGL_NO_SURFACE || draw != EGL_NO_SURFACE) && (ctx == EGL_NO_CONTEXT)) in eglMakeCurrent()
1716 if (ctx == EGL_NO_CONTEXT) { in eglMakeCurrent()
1720 egl_context_t* c = egl_context_t::context(ctx); in eglMakeCurrent()
1723 if ((d && d->ctx && d->ctx != ctx) || in eglMakeCurrent()
1724 (r && r->ctx && r->ctx != ctx)) { in eglMakeCurrent()
1730 ogles_context_t* gl = (ogles_context_t*)ctx; in eglMakeCurrent()
1732 if (ctx) { in eglMakeCurrent()
1733 egl_context_t* c = egl_context_t::context(ctx); in eglMakeCurrent()
1740 s->ctx = EGL_NO_CONTEXT; in eglMakeCurrent()
1767 d->ctx = ctx; in eglMakeCurrent()
1772 r->ctx = ctx; in eglMakeCurrent()
1785 d->ctx = EGL_NO_CONTEXT; in eglMakeCurrent()
1791 r->ctx = EGL_NO_CONTEXT; in eglMakeCurrent()
1814 EGLContext ctx = (EGLContext)getGlThreadSpecific(); in eglGetCurrentSurface() local
1815 if (ctx == EGL_NO_CONTEXT) return EGL_NO_SURFACE; in eglGetCurrentSurface()
1816 egl_context_t* c = egl_context_t::context(ctx); in eglGetCurrentSurface()
1830 EGLContext ctx = (EGLContext)getGlThreadSpecific(); in eglGetCurrentDisplay() local
1831 if (ctx == EGL_NO_CONTEXT) return EGL_NO_DISPLAY; in eglGetCurrentDisplay()
1832 egl_context_t* c = egl_context_t::context(ctx); in eglGetCurrentDisplay()
1836 EGLBoolean eglQueryContext( EGLDisplay dpy, EGLContext ctx, in eglQueryContext() argument
1841 egl_context_t* c = egl_context_t::context(ctx); in eglQueryContext()
1876 if (d->ctx != EGL_NO_CONTEXT) { in eglSwapBuffers()
1877 d->bindDrawSurface((ogles_context_t*)d->ctx); in eglSwapBuffers()
1881 egl_context_t* c = egl_context_t::context(d->ctx); in eglSwapBuffers()
1883 d->bindReadSurface((ogles_context_t*)d->ctx); in eglSwapBuffers()
2027 EGLImageKHR eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, in eglCreateImageKHR() argument
2033 if (ctx != EGL_NO_CONTEXT) { in eglCreateImageKHR()