diff options
Diffstat (limited to 'src/cairo-egl-context.c')
-rw-r--r-- | src/cairo-egl-context.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cairo-egl-context.c b/src/cairo-egl-context.c index a4ec281..b4c18fc 100644 --- a/src/cairo-egl-context.c +++ b/src/cairo-egl-context.c @@ -179,6 +179,12 @@ cairo_egl_device_create (EGLDisplay dpy, EGLContext egl) } } + status = _cairo_gl_dispatch_init (&ctx->base.dispatch, eglGetProcAddress); + if (unlikely (status)) { + free (ctx); + return _cairo_gl_context_create_in_error (status); + } + status = _cairo_gl_context_init (&ctx->base); if (unlikely (status)) { if (ctx->dummy_surface != EGL_NO_SURFACE) |