mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +00:00
CXX_BUILD - buildfixes
This commit is contained in:
parent
96b41b43b5
commit
aad6a3a2a6
@ -25,7 +25,11 @@
|
|||||||
|
|
||||||
#include "../video_context_driver.h"
|
#include "../video_context_driver.h"
|
||||||
|
|
||||||
volatile sig_atomic_t g_egl_quit;
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern volatile sig_atomic_t g_egl_quit;
|
||||||
|
|
||||||
extern EGLContext g_egl_ctx;
|
extern EGLContext g_egl_ctx;
|
||||||
extern EGLContext g_egl_hw_ctx;
|
extern EGLContext g_egl_hw_ctx;
|
||||||
@ -60,4 +64,8 @@ bool egl_create_context(EGLint *egl_attribs);
|
|||||||
|
|
||||||
bool egl_create_surface(NativeWindowType native_window);
|
bool egl_create_surface(NativeWindowType native_window);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -626,7 +626,7 @@ static bool gfx_ctx_drm_egl_set_video_mode(void *data,
|
|||||||
EGL_RENDERABLE_TYPE, EGL_OPENVG_BIT,
|
EGL_RENDERABLE_TYPE, EGL_OPENVG_BIT,
|
||||||
EGL_NONE,
|
EGL_NONE,
|
||||||
};
|
};
|
||||||
|
EGLint *egl_attribs_ptr = NULL;
|
||||||
const EGLint *attrib_ptr;
|
const EGLint *attrib_ptr;
|
||||||
EGLint major, minor, n, egl_attribs[16], *attr;
|
EGLint major, minor, n, egl_attribs[16], *attr;
|
||||||
float refresh_mod;
|
float refresh_mod;
|
||||||
@ -729,8 +729,8 @@ static bool gfx_ctx_drm_egl_set_video_mode(void *data,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
attr = egl_fill_attribs(egl_attribs);
|
attr = egl_fill_attribs(egl_attribs);
|
||||||
EGLint *egl_attribs_ptr = &egl_attribs[0];
|
egl_attribs_ptr = &egl_attribs[0];
|
||||||
|
|
||||||
if (!egl_create_context((attr != egl_attribs_ptr) ? egl_attribs_ptr : NULL))
|
if (!egl_create_context((attr != egl_attribs_ptr) ? egl_attribs_ptr : NULL))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user