mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Fix compile issue in VC context.
This commit is contained in:
parent
d941f70dff
commit
79d0cb11af
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user