diff --git a/libs/filagui/src/ImGuiHelper.cpp b/libs/filagui/src/ImGuiHelper.cpp index 8cbe095268..76a2177bb2 100644 --- a/libs/filagui/src/ImGuiHelper.cpp +++ b/libs/filagui/src/ImGuiHelper.cpp @@ -76,7 +76,7 @@ void ImGuiHelper::createAtlasTexture(Engine* engine) { static unsigned char* pixels; int width, height; io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); - size_t size = (size_t) (width * height); + size_t size = (size_t) (width * height * 4); Texture::PixelBufferDescriptor pb( pixels, size, Texture::Format::RGBA, Texture::Type::UBYTE);