frontend: sdl2: emu_window: Implement separate presentation thread.

This commit is contained in:
bunnei 2020-02-17 15:35:14 -05:00
parent 361819a125
commit 6904e8442d
10 changed files with 79 additions and 62 deletions

View file

@ -13,7 +13,7 @@
#include "input_common/sdl/sdl.h"
#include "yuzu_cmd/emu_window/emu_window_sdl2.h"
EmuWindow_SDL2::EmuWindow_SDL2(bool fullscreen) {
EmuWindow_SDL2::EmuWindow_SDL2(Core::System& system, bool fullscreen) : system{system} {
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) {
LOG_CRITICAL(Frontend, "Failed to initialize SDL2! Exiting...");
exit(1);