libretro: Correctly apply filters for subsystems

This commit is contained in:
Rupert Carmichael 2023-08-06 20:53:56 -04:00 committed by Screwtapello
parent 18afbc3770
commit e3fcc35922
1 changed files with 7 additions and 0 deletions

View File

@ -718,7 +718,14 @@ RETRO_API bool retro_load_game(const retro_game_info *game)
RETRO_API bool retro_load_game_special(unsigned game_type, RETRO_API bool retro_load_game_special(unsigned game_type,
const struct retro_game_info *info, size_t num_info) const struct retro_game_info *info, size_t num_info)
{ {
retro_pixel_format fmt = RETRO_PIXEL_FORMAT_XRGB8888;
if (!environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &fmt))
return false;
emulator->configure("Audio/Frequency", SAMPLERATE); emulator->configure("Audio/Frequency", SAMPLERATE);
program->filterRender = &Filter::None::render;
program->filterSize = &Filter::None::size;
program->updateVideoPalette();
flush_variables(); flush_variables();