mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-10 21:52:42 +00:00
(vc_egl_ctx.c) Cleanup
This commit is contained in:
parent
990bffcc27
commit
1686eb8f7f
@ -508,10 +508,7 @@ static bool gfx_ctx_vc_image_buffer_write(void *data, const void *frame, unsigne
|
||||
bool ret = false;
|
||||
|
||||
if (index >= MAX_EGLIMAGE_TEXTURES)
|
||||
{
|
||||
*image_handle = NULL;
|
||||
return false;
|
||||
}
|
||||
goto error;
|
||||
|
||||
eglBindAPI(EGL_OPENVG_API);
|
||||
eglMakeCurrent(g_egl_dpy, g_pbuff_surf, g_pbuff_surf, g_eglimage_ctx);
|
||||
@ -546,6 +543,10 @@ static bool gfx_ctx_vc_image_buffer_write(void *data, const void *frame, unsigne
|
||||
eglMakeCurrent(g_egl_dpy, g_egl_surf, g_egl_surf, g_egl_ctx);
|
||||
|
||||
return ret;
|
||||
|
||||
error:
|
||||
*image_handle = NULL;
|
||||
return false;
|
||||
}
|
||||
|
||||
const gfx_ctx_driver_t gfx_ctx_videocore = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user