Merge pull request #68 from sunlollyking/hw-context-at-load

Request the hardware context when a game loads
This commit is contained in:
hizzlekizzle authored and GitHub committed 2026-10-16 20:14:03 -05:00
commit dccff5402a
1 file changed
+3 -2
+3 -2
View File
@@ -641,8 +641,6 @@ void retro_init(void)
environ_cb(RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL, &level);
check_variables();
vecx_psg_set_buffer(psgbuf);
vecx_dac_set_buffer(dacbuf);
}
@@ -695,6 +693,9 @@ bool retro_load_game(const struct retro_game_info *info)
if (!info)
return false;
/* Frontends may only accept a hardware context once a game is loading */
check_variables();
#ifdef HAS_GPU
if (usingHWContext)
usingHWContext = set_rendering_context(true);