mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-23 06:21:57 +00:00
Fix SDL_LEAN_AND_MEAN build
This commit is contained in:
parent
d4794cc714
commit
bee8a95571
3 changed files with 32 additions and 19 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue