Log SDL3GPU device creation errors

This commit is contained in:
Anonymous Maarten 2025-05-25 21:40:07 +02:00
parent b24271a51b
commit 5e1345e5c8

View File

@ -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;
}