mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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;
|
||||
}
|
||||
|
||||
rarch_softfilter_get_max_output_size(g_extern.filter.filter, &pow2_x, &pow2_y);
|
||||
pow2_x = next_pow2(pow2_x);
|
||||
pow2_y = next_pow2(pow2_y);
|
||||
rarch_softfilter_get_max_output_size(g_extern.filter.filter, &width, &height);
|
||||
pow2_x = next_pow2(width);
|
||||
pow2_y = next_pow2(height);
|
||||
maxsize = max(pow2_x, pow2_y);
|
||||
g_extern.filter.scale = maxsize / RARCH_SCALE_BASE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user