sdl: Fix surface initialization on macOS. (#49)
* sdl: Fix surface initialization on macOS. * sdl: Fix render window events not being handled under Vulkan.
This commit is contained in:
@ -61,7 +61,7 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(Core::System& system, bool fullscreen, bool
|
|||||||
#ifdef SDL_VIDEO_DRIVER_COCOA
|
#ifdef SDL_VIDEO_DRIVER_COCOA
|
||||||
case SDL_SYSWM_TYPE::SDL_SYSWM_COCOA:
|
case SDL_SYSWM_TYPE::SDL_SYSWM_COCOA:
|
||||||
window_info.type = Frontend::WindowSystemType::MacOS;
|
window_info.type = Frontend::WindowSystemType::MacOS;
|
||||||
window_info.render_surface = SDL_Metal_CreateView(render_window);
|
window_info.render_surface = SDL_Metal_GetLayer(SDL_Metal_CreateView(render_window));
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#ifdef SDL_VIDEO_DRIVER_ANDROID
|
#ifdef SDL_VIDEO_DRIVER_ANDROID
|
||||||
@ -76,6 +76,8 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(Core::System& system, bool fullscreen, bool
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
render_window_id = SDL_GetWindowID(render_window);
|
||||||
|
|
||||||
OnResize();
|
OnResize();
|
||||||
OnMinimalClientAreaChangeRequest(GetActiveConfig().min_client_area_size);
|
OnMinimalClientAreaChangeRequest(GetActiveConfig().min_client_area_size);
|
||||||
SDL_PumpEvents();
|
SDL_PumpEvents();
|
||||||
|
Reference in New Issue
Block a user