mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-26 01:25:15 +00:00
SDL_LowerSoftStretchLinear: assign result from scale_mat() to ret.
otherwise it would always return -1 when SSE and NEON instrinsics are absent.
This commit is contained in:
parent
24d6fda2c3
commit
87f0900701
|
@ -850,7 +850,7 @@ SDL_LowerSoftStretchLinear(SDL_Surface *s, const SDL_Rect *srcrect,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
scale_mat(src, src_w, src_h, src_pitch, dst, dst_w, dst_h, dst_pitch);
|
ret = scale_mat(src, src_w, src_h, src_pitch, dst, dst_w, dst_h, dst_pitch);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue