mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-08 02:46:26 +00:00
re-use return value of SDL_SetError/WIN_SetErrorFromHRESULT/SDL_OutOfMemory
This commit is contained in:
@@ -1404,8 +1404,7 @@ int SDL_ConvertPixels(int width, int height,
|
||||
}
|
||||
#else
|
||||
if (SDL_ISPIXELFORMAT_FOURCC(src_format) || SDL_ISPIXELFORMAT_FOURCC(dst_format)) {
|
||||
SDL_SetError("SDL not built with YUV support");
|
||||
return -1;
|
||||
return SDL_SetError("SDL not built with YUV support");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user