mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Log SDL3GPU device creation errors
This commit is contained in:
parent
b24271a51b
commit
5e1345e5c8
@ -166,12 +166,14 @@ HRESULT Direct3DRM_SDL3GPUImpl::CreateDevice(IDirect3DRMDevice2** outDevice, DWO
|
||||
NULL
|
||||
);
|
||||
if (device == NULL) {
|
||||
SDL_LogError(LOG_CATEGORY_MINIWIN, "SDL_CreateGPUDevice failed (%s)", SDL_GetError());
|
||||
return DDERR_GENERIC;
|
||||
}
|
||||
if (DDWindow == NULL) {
|
||||
return DDERR_GENERIC;
|
||||
}
|
||||
if (!SDL_ClaimWindowForGPUDevice(device, DDWindow)) {
|
||||
SDL_LogError(LOG_CATEGORY_MINIWIN, "SDL_ClaimWindowForGPUDevice failed (%s)", SDL_GetError());
|
||||
return DDERR_GENERIC;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user