(videocore) Fix build

This commit is contained in:
Higor Eurípedes 2015-12-08 19:34:26 -03:00
parent 39b238151f
commit 1f51a0d948
3 changed files with 6 additions and 4 deletions

View File

@ -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,

View File

@ -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);

View File

@ -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,