mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 09:39:56 +00:00
CXX_BUILD buildfix
This commit is contained in:
parent
a6bfc6240f
commit
b434f0863a
@ -190,10 +190,11 @@ void egl_install_sighandlers(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool egl_init_context(egl_ctx_data_t *egl,
|
bool egl_init_context(egl_ctx_data_t *egl,
|
||||||
NativeDisplayType display,
|
void *display_data,
|
||||||
EGLint *major, EGLint *minor,
|
EGLint *major, EGLint *minor,
|
||||||
EGLint *n, const EGLint *attrib_ptr)
|
EGLint *n, const EGLint *attrib_ptr)
|
||||||
{
|
{
|
||||||
|
NativeDisplayType display = (NativeDisplayType)display_data;
|
||||||
egl->dpy = eglGetDisplay(display);
|
egl->dpy = eglGetDisplay(display);
|
||||||
if (!egl->dpy)
|
if (!egl->dpy)
|
||||||
{
|
{
|
||||||
@ -237,9 +238,9 @@ bool egl_create_context(egl_ctx_data_t *egl, const EGLint *egl_attribs)
|
|||||||
return true;
|
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)
|
if (egl->surf == EGL_NO_SURFACE)
|
||||||
return false;
|
return false;
|
||||||
|
@ -86,7 +86,7 @@ void egl_get_video_size(egl_ctx_data_t *egl, unsigned *width, unsigned *height);
|
|||||||
void egl_install_sighandlers(void);
|
void egl_install_sighandlers(void);
|
||||||
|
|
||||||
bool egl_init_context(egl_ctx_data_t *egl,
|
bool egl_init_context(egl_ctx_data_t *egl,
|
||||||
NativeDisplayType display,
|
void *display_data,
|
||||||
EGLint *major,
|
EGLint *major,
|
||||||
EGLint *minor,
|
EGLint *minor,
|
||||||
EGLint *n,
|
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_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);
|
bool egl_get_native_visual_id(egl_ctx_data_t *egl, EGLint *value);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user