Use modified width/height as filter buffer size.

Fixes scale2x segfault.
This commit is contained in:
Themaister 2014-04-15 19:24:50 +02:00
parent a17c814ea7
commit d0a6f45565

View File

@ -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;