mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
VideoBackends: Pass window system info from host on creation
This commit is contained in:
@ -127,14 +127,11 @@ void VideoBackend::InitBackendInfo()
|
||||
DX11::D3D::UnloadD3D();
|
||||
}
|
||||
|
||||
bool VideoBackend::Initialize(void* display_handle, void* window_handle)
|
||||
bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
|
||||
{
|
||||
if (window_handle == nullptr)
|
||||
return false;
|
||||
|
||||
InitializeShared();
|
||||
|
||||
if (FAILED(D3D::Create(reinterpret_cast<HWND>(window_handle))))
|
||||
if (FAILED(D3D::Create(reinterpret_cast<HWND>(wsi.render_surface))))
|
||||
{
|
||||
PanicAlert("Failed to create D3D device.");
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user