mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-26 09:41:15 +00:00
Try to set use_hw_ctx in advance for Android
This commit is contained in:
parent
5c973b6649
commit
c010c5b258
@ -136,6 +136,9 @@ static void *android_gfx_ctx_init(video_frame_info_t *video_info, void *video_dr
|
||||
attribs[1] = EGL_OPENGL_ES3_BIT_KHR;
|
||||
#endif
|
||||
|
||||
and->egl.use_hw_ctx = video_info->shared_context
|
||||
&& video_info->hw_render_ctx;
|
||||
|
||||
switch (android_api)
|
||||
{
|
||||
case GFX_CTX_OPENGL_API:
|
||||
|
@ -2465,6 +2465,7 @@ void video_driver_build_info(video_frame_info_t *video_info)
|
||||
video_driver_threaded_lock(is_threaded);
|
||||
#endif
|
||||
settings = config_get_ptr();
|
||||
video_info->hw_render_ctx = false; /* TODO/FIXME - might eventually do something here */
|
||||
video_info->refresh_rate = settings->floats.video_refresh_rate;
|
||||
video_info->black_frame_insertion =
|
||||
settings->bools.video_black_frame_insertion;
|
||||
@ -2726,6 +2727,8 @@ static const gfx_ctx_driver_t *video_context_driver_init(
|
||||
|
||||
video_driver_build_info(&video_info);
|
||||
|
||||
video_info.hw_render_ctx = hw_render_ctx;
|
||||
|
||||
ctx_data = ctx->init(&video_info, data);
|
||||
|
||||
if (!ctx_data)
|
||||
|
@ -427,6 +427,7 @@ typedef struct video_frame_info
|
||||
bool runloop_is_paused;
|
||||
bool is_perfcnt_enable;
|
||||
bool menu_is_alive;
|
||||
bool hw_render_ctx;
|
||||
|
||||
int custom_vp_x;
|
||||
int custom_vp_y;
|
||||
|
Loading…
Reference in New Issue
Block a user