mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-29 16:25:22 +00:00
Fix Cygwin building and add CI (#15566)
Co-authored-by: TrueCat17 <truecat17@gmail.com> Co-authored-by: Anonymous Maarten <anonymous.maarten@gmail.com> Co-authored-by: Ozkan Sezer <sezeroz@gmail.com>
This commit is contained in:
@@ -9036,7 +9036,7 @@ static bool D3D12_INTERNAL_GetAdapterByLuid(LUID luid, IDXGIFactory1 *factory, I
|
||||
IDXGIAdapter1 *adapter;
|
||||
res = IDXGIFactory1_EnumAdapters1(factory, adapterIndex, &adapter);
|
||||
if (FAILED(res)) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_GPU, "Failed to get an adapter when iterating, i: %d, res: %ld", adapterIndex, res);
|
||||
SDL_LogError(SDL_LOG_CATEGORY_GPU, "Failed to get an adapter when iterating, i: %d, res: %" SDL_PRIdSLONG, adapterIndex, res);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -9044,7 +9044,7 @@ static bool D3D12_INTERNAL_GetAdapterByLuid(LUID luid, IDXGIFactory1 *factory, I
|
||||
res = IDXGIAdapter1_GetDesc1(adapter, &adapterDesc);
|
||||
if (FAILED(res)) {
|
||||
IDXGIAdapter1_Release(adapter);
|
||||
SDL_LogError(SDL_LOG_CATEGORY_GPU, "Failed to get description of adapter, i: %d, res %ld", adapterIndex, res);
|
||||
SDL_LogError(SDL_LOG_CATEGORY_GPU, "Failed to get description of adapter, i: %d, res %" SDL_PRIdSLONG, adapterIndex, res);
|
||||
return false;
|
||||
}
|
||||
if (SDL_memcmp(&adapterDesc.AdapterLuid, &luid, sizeof(luid)) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user