Removing no more required video context capabilities check at content_load time.

This commit is contained in:
Rinnegatamante 2019-10-04 19:25:05 +02:00
parent 453781af9c
commit eed65a64b2
1 changed files with 0 additions and 35 deletions

View File

@ -589,41 +589,6 @@ static bool content_load(content_ctx_info_t *info)
char **rarch_argv_ptr = (char**)info->argv;
int *rarch_argc_ptr = (int*)&info->argc;
struct rarch_main_wrap *wrap_args = NULL;
core_info_t core_info = {0};
core_info_list_t *core_info_list = NULL;
gfx_ctx_ident_t ident_info = {0};
video_context_driver_get_ident(&ident_info);
/* only check for supported hw api on X11/GLX and Windows since that is where it is currently implemented */
#ifdef HAVE_X11
if (!string_is_empty(ident_info.ident) && string_is_equal(ident_info.ident, "x"))
#else
#if defined(_WIN32) && !defined(_XBOX)
if (!string_is_empty(ident_info.ident) && string_is_equal(ident_info.ident, "wgl"))
#endif
#endif
{
core_info_get_list(&core_info_list);
if (core_info_list)
{
if (core_info_list_get_info(core_info_list, &core_info, path_get(RARCH_PATH_CORE)))
{
if (!core_info_hw_api_supported(&core_info))
{
RARCH_ERR("This core is not compatible with the current video driver.\n");
runloop_msg_queue_push(
msg_hash_to_str(MSG_INCOMPATIBLE_CORE_FOR_VIDEO_DRIVER),
100, 250, true, NULL,
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
return false;
}
else
RARCH_LOG("This core is compatible with the current video driver.\n");
}
}
}
wrap_args = (struct rarch_main_wrap*)
calloc(1, sizeof(*wrap_args));