Merge branch 'isledecomp:master' into psp

This commit is contained in:
VoxelTek 2025-07-08 16:58:39 +10:00 committed by GitHub
commit 21484201c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,11 +120,19 @@ class Direct3DRMSDL3GPURenderer : public Direct3DRMRenderer {
inline static void Direct3DRMSDL3GPU_EnumDevice(LPD3DENUMDEVICESCALLBACK cb, void* ctx)
{
#ifdef __APPLE__
SDL_GPUDevice* device = SDL_CreateGPUDevice(SDL_GPU_SHADERFORMAT_MSL, false, nullptr);
if (!device) {
return;
}
SDL_DestroyGPUDevice(device);
#else
Direct3DRMRenderer* device = Direct3DRMSDL3GPURenderer::Create(640, 480);
if (!device) {
return;
}
delete device;
#endif
D3DDEVICEDESC halDesc = {};
halDesc.dcmColorModel = D3DCOLOR_RGB;