[Pi] Build fixes.
This commit is contained in:
parent
5266be7934
commit
1c4c943604
|
@ -284,7 +284,7 @@ static void gfx_ctx_destroy(void)
|
||||||
|
|
||||||
if (g_egl_ctx)
|
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);
|
eglMakeCurrent(g_egl_dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
||||||
eglDestroyContext(g_egl_dpy, g_egl_ctx);
|
eglDestroyContext(g_egl_dpy, g_egl_ctx);
|
||||||
}
|
}
|
||||||
|
@ -298,7 +298,7 @@ static void gfx_ctx_destroy(void)
|
||||||
|
|
||||||
if (g_egl_surf)
|
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);
|
eglDestroySurface(g_egl_dpy, g_egl_surf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ static void gfx_ctx_destroy(void)
|
||||||
|
|
||||||
eglBindAPI(EGL_OPENVG_API);
|
eglBindAPI(EGL_OPENVG_API);
|
||||||
eglMakeCurrent(g_egl_dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
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);
|
eglMakeCurrent(g_egl_dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
||||||
eglTerminate(g_egl_dpy);
|
eglTerminate(g_egl_dpy);
|
||||||
}
|
}
|
||||||
|
@ -405,7 +405,7 @@ static bool gfx_ctx_init_egl_image_buffer(const video_info_t *video)
|
||||||
goto fail;
|
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);
|
eglMakeCurrent(g_egl_dpy, g_egl_surf, g_egl_surf, g_egl_ctx);
|
||||||
|
|
||||||
g_smooth = video->smooth;
|
g_smooth = video->smooth;
|
||||||
|
@ -424,7 +424,7 @@ fail:
|
||||||
g_pbuff_surf = EGL_NO_CONTEXT;
|
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);
|
eglMakeCurrent(g_egl_dpy, g_egl_surf, g_egl_surf, g_egl_ctx);
|
||||||
|
|
||||||
return false;
|
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);
|
vgImageSubData(g_egl_vgimage[index], frame, pitch, (rgb32 ? VG_sXRGB_8888 : VG_sRGB_565), 0, 0, width, height);
|
||||||
*image_handle = eglBuffer[index];
|
*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);
|
eglMakeCurrent(g_egl_dpy, g_egl_surf, g_egl_surf, g_egl_ctx);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue