From 58fd8ea303e59504baf0d5d01fc85e97c0fd8671 Mon Sep 17 00:00:00 2001 From: Guillaume Chereau Date: Thu, 12 Apr 2018 19:11:49 +0800 Subject: [PATCH] Fix minor error in doc Not a big deal. --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index a2bb14334..60329889b 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -142,7 +142,7 @@ // Load texture atlas (there is a default font so you don't need to care about choosing a font yet) unsigned char* pixels; int width, height; - io.Fonts->GetTexDataAsRGBA32(pixels, &width, &height); + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // TODO: At this points you've got the texture data and you need to upload that your your graphic system: MyTexture* texture = MyEngine::CreateTextureFromMemoryPixels(pixels, width, height, TEXTURE_TYPE_RGBA) // TODO: Store your texture pointer/identifier (whatever your engine uses) in 'io.Fonts->TexID'. This will be passed back to your via the renderer.