libretro: don't allow saving states in a background thread

Issue #1903
This commit is contained in:
Flyinghead 2025-05-03 11:03:11 +02:00
parent d3b8a67cba
commit e148fabeae
1 changed files with 1 additions and 1 deletions

View File

@ -886,7 +886,7 @@ static void update_variables(bool first_startup)
{
if (config::ThreadedRendering)
{
bool save_state_in_background = true ;
bool save_state_in_background = false;
unsigned poll_type_early = 1; /* POLL_TYPE_EARLY */
environ_cb(RETRO_ENVIRONMENT_SET_SAVE_STATE_IN_BACKGROUND, &save_state_in_background);
environ_cb(RETRO_ENVIRONMENT_POLL_TYPE_OVERRIDE, &poll_type_early);