mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 10:40:39 +00:00
Fix #14789
The change to apply shaders would be executed and then a command to apply shaders would immeidately be enqueued, to run asynchronously after the current event handler, which then did exactly the same thing, creating a busy loop.
This commit is contained in:
parent
6199baff3a
commit
ab27029f2b
@ -971,9 +971,18 @@ static void ui_companion_cocoa_notify_content_loaded(void *data) { }
|
||||
static void ui_companion_cocoa_toggle(void *data, bool force) { }
|
||||
static void ui_companion_cocoa_event_command(void *data, enum event_command cmd)
|
||||
{
|
||||
id performer = [[CommandPerformer alloc] initWithData:data command:cmd];
|
||||
[performer performSelectorOnMainThread:@selector(perform) withObject:nil waitUntilDone:NO];
|
||||
RELEASE(performer);
|
||||
switch (cmd)
|
||||
{
|
||||
case CMD_EVENT_SHADERS_APPLY_CHANGES:
|
||||
case CMD_EVENT_SHADER_PRESET_LOADED:
|
||||
break;
|
||||
default: {
|
||||
id performer = [[CommandPerformer alloc] initWithData:data command:cmd];
|
||||
[performer performSelectorOnMainThread:@selector(perform) withObject:nil waitUntilDone:NO];
|
||||
RELEASE(performer);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
static void ui_companion_cocoa_notify_list_pushed(void *data, file_list_t *a, file_list_t *b) { }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user