Fix SDL_LEAN_AND_MEAN build

This commit is contained in:
Anonymous Maarten
2024-03-11 20:16:20 +01:00
committed by Sam Lantinga
parent d4794cc714
commit bee8a95571
3 changed files with 32 additions and 19 deletions

View File

@@ -931,7 +931,12 @@ SDL_Renderer *SDL_CreateRendererWithProperties(SDL_PropertiesID props)
}
if (surface) {
#if SDL_VIDEO_RENDER_SW
renderer = SW_CreateRendererForSurface(surface, props);
#else
renderer = NULL;
SDL_SetError("SDL not built with software renderer");
#endif
if (!renderer) {
goto error;
}