From 1c4c9436045181a8b1e23a4cd571aed25636b5a0 Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 22 Aug 2013 22:12:16 +0200 Subject: [PATCH] [Pi] Build fixes. --- gfx/context/vc_egl_ctx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gfx/context/vc_egl_ctx.c b/gfx/context/vc_egl_ctx.c index b9097751ff..1db9a28f8b 100644 --- a/gfx/context/vc_egl_ctx.c +++ b/gfx/context/vc_egl_ctx.c @@ -284,7 +284,7 @@ static void gfx_ctx_destroy(void) if (g_egl_ctx) { - gfx_ctx_bind_api(g_api); + gfx_ctx_bind_api(g_api, 0, 0); eglMakeCurrent(g_egl_dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); eglDestroyContext(g_egl_dpy, g_egl_ctx); } @@ -298,7 +298,7 @@ static void gfx_ctx_destroy(void) if (g_egl_surf) { - gfx_ctx_bind_api(g_api); + gfx_ctx_bind_api(g_api, 0, 0); eglDestroySurface(g_egl_dpy, g_egl_surf); } @@ -310,7 +310,7 @@ static void gfx_ctx_destroy(void) eglBindAPI(EGL_OPENVG_API); eglMakeCurrent(g_egl_dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); - gfx_ctx_bind_api(g_api); + gfx_ctx_bind_api(g_api, 0, 0); eglMakeCurrent(g_egl_dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); eglTerminate(g_egl_dpy); } @@ -405,7 +405,7 @@ static bool gfx_ctx_init_egl_image_buffer(const video_info_t *video) goto fail; } - gfx_ctx_bind_api(g_api); + gfx_ctx_bind_api(g_api, 0, 0); eglMakeCurrent(g_egl_dpy, g_egl_surf, g_egl_surf, g_egl_ctx); g_smooth = video->smooth; @@ -424,7 +424,7 @@ fail: g_pbuff_surf = EGL_NO_CONTEXT; } - gfx_ctx_bind_api(g_api); + gfx_ctx_bind_api(g_api, 0, 0); eglMakeCurrent(g_egl_dpy, g_egl_surf, g_egl_surf, g_egl_ctx); return false; @@ -453,7 +453,7 @@ static bool gfx_ctx_write_egl_image(const void *frame, unsigned width, unsigned vgImageSubData(g_egl_vgimage[index], frame, pitch, (rgb32 ? VG_sXRGB_8888 : VG_sRGB_565), 0, 0, width, height); *image_handle = eglBuffer[index]; - gfx_ctx_bind_api(g_api); + gfx_ctx_bind_api(g_api, 0, 0); eglMakeCurrent(g_egl_dpy, g_egl_surf, g_egl_surf, g_egl_ctx); return ret;