X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=fft_pass_effect.cpp;h=b46e5e589fc9bb4f548dafc234745c801506beb4;hp=e3999b30682a1514b922ef64b825fe9096ab6065;hb=131e7179b596f8268fd80c32312849da83581e55;hpb=60e4852ff1b04c525a9e3f1c98a1017db28b27bd diff --git a/fft_pass_effect.cpp b/fft_pass_effect.cpp index e3999b3..b46e5e5 100644 --- a/fft_pass_effect.cpp +++ b/fft_pass_effect.cpp @@ -119,8 +119,8 @@ void FFTPassEffect::generate_support_texture() // bit, so the stride is 8, and so on. assert((fft_size & (fft_size - 1)) == 0); // Must be power of two. - fp16_int_t *tmp = new fp16_int_t[fft_size * 4]; int subfft_size = 1 << pass_number; + fp16_int_t *tmp = new fp16_int_t[subfft_size * 4]; double mulfac; if (inverse) { mulfac = 2.0 * M_PI;