Fixed bad allocation of waterfall framebuffer

pull/36/head
Ryzerth 2020-07-20 16:19:35 +02:00
rodzic f1fd6fce7a
commit 07d3fa2034
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -308,6 +308,7 @@ namespace ImGui {
delete[] waterfallFb;
latestFFT = new float[dataWidth];
waterfallFb = new uint32_t[dataWidth * waterfallHeight];
memset(waterfallFb, 0, dataWidth * waterfallHeight * sizeof(uint32_t));
for (int i = 0; i < dataWidth; i++) {
latestFFT[i] = -1000.0f; // Hide everything
}