Use the correct size for the ImGui glyph atlas (#2386)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user