mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
CXX_BUILD - buildfixes
This commit is contained in:
parent
96b41b43b5
commit
aad6a3a2a6
@ -25,7 +25,11 @@
|
||||
|
||||
#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_hw_ctx;
|
||||
@ -60,4 +64,8 @@ bool egl_create_context(EGLint *egl_attribs);
|
||||
|
||||
bool egl_create_surface(NativeWindowType native_window);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -626,7 +626,7 @@ static bool gfx_ctx_drm_egl_set_video_mode(void *data,
|
||||
EGL_RENDERABLE_TYPE, EGL_OPENVG_BIT,
|
||||
EGL_NONE,
|
||||
};
|
||||
|
||||
EGLint *egl_attribs_ptr = NULL;
|
||||
const EGLint *attrib_ptr;
|
||||
EGLint major, minor, n, egl_attribs[16], *attr;
|
||||
float refresh_mod;
|
||||
@ -729,8 +729,8 @@ static bool gfx_ctx_drm_egl_set_video_mode(void *data,
|
||||
goto error;
|
||||
}
|
||||
|
||||
attr = egl_fill_attribs(egl_attribs);
|
||||
EGLint *egl_attribs_ptr = &egl_attribs[0];
|
||||
attr = egl_fill_attribs(egl_attribs);
|
||||
egl_attribs_ptr = &egl_attribs[0];
|
||||
|
||||
if (!egl_create_context((attr != egl_attribs_ptr) ? egl_attribs_ptr : NULL))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user