mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-20 09:48:27 +00:00
(videocore) Fix build
This commit is contained in:
parent
39b238151f
commit
1f51a0d948
@ -224,7 +224,7 @@ bool egl_init_context(void *data, NativeDisplayType display,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool egl_create_context(void *data, EGLint *egl_attribs)
|
||||
bool egl_create_context(void *data, const EGLint *egl_attribs)
|
||||
{
|
||||
egl_ctx_data_t *egl = (egl_ctx_data_t*)data;
|
||||
egl->ctx = eglCreateContext(egl->dpy, egl->config, EGL_NO_CONTEXT,
|
||||
|
@ -88,7 +88,7 @@ bool egl_init_context(void *data, NativeDisplayType display,
|
||||
EGLint *major, EGLint *minor,
|
||||
EGLint *n, const EGLint *attrib_ptr);
|
||||
|
||||
bool egl_create_context(void *data, EGLint *egl_attribs);
|
||||
bool egl_create_context(void *data, const EGLint *egl_attribs);
|
||||
|
||||
bool egl_create_surface(void *data, NativeWindowType native_window);
|
||||
|
||||
|
@ -282,11 +282,13 @@ static bool gfx_ctx_vc_set_video_mode(void *data,
|
||||
unsigned width, unsigned height,
|
||||
bool fullscreen)
|
||||
{
|
||||
vc_ctx_data_t *vc = (vc_ctx_data_t*)data;
|
||||
|
||||
if (g_egl_inited)
|
||||
return false;
|
||||
|
||||
egl_install_sighandlers();
|
||||
egl_set_swap_interval(data, g_interval);
|
||||
egl_set_swap_interval(data, vc->egl.interval);
|
||||
|
||||
g_egl_inited = true;
|
||||
|
||||
@ -537,7 +539,7 @@ static bool gfx_ctx_vc_image_buffer_write(void *data, const void *frame, unsigne
|
||||
vc->res,
|
||||
vc->res,
|
||||
VG_IMAGE_QUALITY_NONANTIALIASED);
|
||||
eglBuffer[index] = peglCreateImageKHR(
|
||||
vc->eglBuffer[index] = peglCreateImageKHR(
|
||||
vc->egl.dpy,
|
||||
vc->eglimage_ctx,
|
||||
EGL_VG_PARENT_IMAGE_KHR,
|
||||
|
Loading…
Reference in New Issue
Block a user