mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-10 21:38:14 +00:00
Fix SDL_LEAN_AND_MEAN build
This commit is contained in:

committed by
Sam Lantinga

parent
d4794cc714
commit
bee8a95571
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user