mirror of
https://github.com/libretro/libretro-vecx.git
synced 2026-11-07 11:15:59 -10:00
Merge pull request #68 from sunlollyking/hw-context-at-load
Request the hardware context when a game loads
This commit is contained in:
1 file changed
+3
-2
+3
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user