diff --git a/src/FNA3D_Driver_SDL.c b/src/FNA3D_Driver_SDL.c index 5325f6ad..c702e292 100644 --- a/src/FNA3D_Driver_SDL.c +++ b/src/FNA3D_Driver_SDL.c @@ -4026,7 +4026,12 @@ static void SDLGPU_DestroyDevice(FNA3D_Device *device) static uint8_t SDLGPU_PrepareWindowAttributes(uint32_t *flags) { - return SDL_GPUSupportsShaderFormats(MOJOSHADER_sdlGetShaderFormats(), NULL); + uint8_t result = SDL_GPUSupportsShaderFormats(MOJOSHADER_sdlGetShaderFormats(), NULL); + if (!result) + { + FNA3D_LogWarn("SDL_GPUSupportsShaderFormats failed: %s", SDL_GetError()); + } + return result; } static FNA3D_Device* SDLGPU_CreateDevice( @@ -4057,7 +4062,7 @@ static FNA3D_Device* SDLGPU_CreateDevice( if (device == NULL) { - FNA3D_LogError("Failed to create SDLGPU device!"); + FNA3D_LogError("Failed to create SDLGPU device: %s", SDL_GetError()); return NULL; }