Skip to content

Commit 932a258

Browse files
author
devsh
committed
fix IMGUI for new ICPUBuffer API
1 parent 22e86a7 commit 932a258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/ext/ImGui/ImGui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ smart_refctd_ptr<IGPUImageView> UI::createFontAtlasTexture(const SCreationParame
434434
// set its contents
435435
{
436436
const size_t image_size = getTexelOrBlockBytesize(NBL_FORMAT_FONT)*width*height;
437-
auto buffer = make_smart_refctd_ptr<CCustomAllocatorCPUBuffer<null_allocator<uint8_t>>>(image_size,pixels,adopt_memory);
437+
auto buffer = ICPUBuffer::create({.size=image_size,.data=pixels,.alignment=alignof(uint32_t),.memoryResource=core::getNullMemoryResource()},adopt_memory);
438438
auto regions = make_refctd_dynamic_array<smart_refctd_dynamic_array<ICPUImage::SBufferCopy>>(1ull);
439439
{
440440
auto region = regions->begin();

0 commit comments

Comments
 (0)