mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 06:18:34 +00:00
(Android) Add Android context hooks
This commit is contained in:
parent
7a761393dd
commit
8132f9fd8a
@ -27,7 +27,7 @@
|
||||
VIDEO
|
||||
============================================================ */
|
||||
|
||||
#if defined(HAVE_OPENGL) /* PS3, GL */
|
||||
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) /* PS3, GL */
|
||||
#define video_init_func(video_info, input, input_data) \
|
||||
gl_init(video_info, input, input_data)
|
||||
#define video_frame_func(data, width, height, pitch, msg) \
|
||||
|
2
driver.c
2
driver.c
@ -226,7 +226,7 @@ static void adjust_system_rates(void)
|
||||
|
||||
RARCH_LOG("Set audio input rate to: %.2f Hz.\n", g_settings.audio.in_rate);
|
||||
|
||||
#ifdef RARCH_CONSOLE
|
||||
#if defined(RARCH_CONSOLE) && !defined(ANDROID)
|
||||
video_set_nonblock_state_func(!g_settings.video.vsync || g_extern.system.force_nonblock);
|
||||
#endif
|
||||
}
|
||||
|
@ -45,6 +45,9 @@ static const gfx_ctx_driver_t *gfx_ctx_drivers[] = {
|
||||
#if defined(HAVE_KMS)
|
||||
&gfx_ctx_drm_egl,
|
||||
#endif
|
||||
#if defined(ANDROID)
|
||||
&gfx_ctx_android,
|
||||
#endif
|
||||
};
|
||||
|
||||
const gfx_ctx_driver_t *gfx_ctx_find_driver(const char *ident)
|
||||
|
@ -107,6 +107,7 @@ extern const gfx_ctx_driver_t gfx_ctx_sdl_gl;
|
||||
extern const gfx_ctx_driver_t gfx_ctx_x_egl;
|
||||
extern const gfx_ctx_driver_t gfx_ctx_glx;
|
||||
extern const gfx_ctx_driver_t gfx_ctx_drm_egl;
|
||||
extern const gfx_ctx_driver_t gfx_ctx_android;
|
||||
extern const gfx_ctx_driver_t gfx_ctx_ps3;
|
||||
extern const gfx_ctx_driver_t gfx_ctx_xdk;
|
||||
extern const gfx_ctx_driver_t gfx_ctx_wgl;
|
||||
|
Loading…
Reference in New Issue
Block a user