We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ccda4e commit 439640aCopy full SHA for 439640a
src/nbl/ext/ImGui/ImGui.cpp
@@ -393,10 +393,9 @@ smart_refctd_ptr<IGPUImageView> UI::createFontAtlasTexture(const SCreationParame
393
394
// CCustomAllocatorCPUBuffer is kinda crap and doesn't support stateful allocators
395
uint8_t* pixels = nullptr;
396
- auto freeMemory = core::makeRAIIExiter([&pixels]()->void
+ auto freeMemory = core::makeRAIIExiter([&fontAtlas]()->void
397
{
398
- if (pixels)
399
- IM_FREE(pixels);
+ fontAtlas->ClearTexData(); // calls free on pixel blocks
400
}
401
);
402
0 commit comments