mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +00:00
Use modified width/height as filter buffer size.
Fixes scale2x segfault.
This commit is contained in:
parent
a17c814ea7
commit
d0a6f45565
6
driver.c
6
driver.c
@ -1323,9 +1323,9 @@ void rarch_init_filter(enum retro_pixel_format colfmt)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
rarch_softfilter_get_max_output_size(g_extern.filter.filter, &pow2_x, &pow2_y);
|
rarch_softfilter_get_max_output_size(g_extern.filter.filter, &width, &height);
|
||||||
pow2_x = next_pow2(pow2_x);
|
pow2_x = next_pow2(width);
|
||||||
pow2_y = next_pow2(pow2_y);
|
pow2_y = next_pow2(height);
|
||||||
maxsize = max(pow2_x, pow2_y);
|
maxsize = max(pow2_x, pow2_y);
|
||||||
g_extern.filter.scale = maxsize / RARCH_SCALE_BASE;
|
g_extern.filter.scale = maxsize / RARCH_SCALE_BASE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user