CXX_BUILD buildfix

This commit is contained in:
twinaphex 2016-06-23 07:44:56 +02:00
parent a6bfc6240f
commit b434f0863a
2 changed files with 6 additions and 5 deletions

View File

@ -190,10 +190,11 @@ void egl_install_sighandlers(void)
}
bool egl_init_context(egl_ctx_data_t *egl,
NativeDisplayType display,
void *display_data,
EGLint *major, EGLint *minor,
EGLint *n, const EGLint *attrib_ptr)
{
NativeDisplayType display = (NativeDisplayType)display_data;
egl->dpy = eglGetDisplay(display);
if (!egl->dpy)
{
@ -237,9 +238,9 @@ bool egl_create_context(egl_ctx_data_t *egl, const EGLint *egl_attribs)
return true;
}
bool egl_create_surface(egl_ctx_data_t *egl, NativeWindowType native_window)
bool egl_create_surface(egl_ctx_data_t *egl, void *native_window)
{
egl->surf = eglCreateWindowSurface(egl->dpy, egl->config, native_window, NULL);
egl->surf = eglCreateWindowSurface(egl->dpy, egl->config, (NativeWindowType)native_window, NULL);
if (egl->surf == EGL_NO_SURFACE)
return false;

View File

@ -86,7 +86,7 @@ void egl_get_video_size(egl_ctx_data_t *egl, unsigned *width, unsigned *height);
void egl_install_sighandlers(void);
bool egl_init_context(egl_ctx_data_t *egl,
NativeDisplayType display,
void *display_data,
EGLint *major,
EGLint *minor,
EGLint *n,
@ -94,7 +94,7 @@ bool egl_init_context(egl_ctx_data_t *egl,
bool egl_create_context(egl_ctx_data_t *egl, const EGLint *egl_attribs);
bool egl_create_surface(egl_ctx_data_t *egl, NativeWindowType native_window);
bool egl_create_surface(egl_ctx_data_t *egl, void *native_window);
bool egl_get_native_visual_id(egl_ctx_data_t *egl, EGLint *value);