From 79d0cb11afd139520d22b438cd06593fb3028036 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 15 Mar 2014 16:04:23 +0100 Subject: [PATCH] Fix compile issue in VC context. --- gfx/context/vc_egl_ctx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gfx/context/vc_egl_ctx.c b/gfx/context/vc_egl_ctx.c index 1a73b6b0ab..43c027dbe7 100644 --- a/gfx/context/vc_egl_ctx.c +++ b/gfx/context/vc_egl_ctx.c @@ -447,7 +447,6 @@ fail: static bool gfx_ctx_write_egl_image(void *data, const void *frame, unsigned width, unsigned height, unsigned pitch, bool rgb32, unsigned index, void **image_handle) { - (void)data; bool ret = false; if (index >= MAX_EGLIMAGE_TEXTURES) @@ -469,7 +468,7 @@ static bool gfx_ctx_write_egl_image(void *data, const void *frame, unsigned widt 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, 0, 0); + gfx_ctx_bind_api(data, g_api, 0, 0); eglMakeCurrent(g_egl_dpy, g_egl_surf, g_egl_surf, g_egl_ctx); return ret;