|
|
|
@ -100,7 +100,7 @@ static void ImGui_ImplOpenGL3_DestroyFontsTexture()
|
|
|
|
|
{
|
|
|
|
|
ImGuiIO& io = ImGui::GetIO();
|
|
|
|
|
glDeleteTextures(1, &g_FontTexture);
|
|
|
|
|
io.Fonts->TexID = 0;
|
|
|
|
|
io.Fonts->SetTexID(0);
|
|
|
|
|
g_FontTexture = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -128,7 +128,7 @@ bool ImGui_ImplOpenGL3_CreateFontsTexture()
|
|
|
|
|
glTexImage2D(GL_TEXTURE_2D, 0, GL_R8, width, height, 0, GL_RED, GL_UNSIGNED_BYTE, pixels);
|
|
|
|
|
|
|
|
|
|
// Store our identifier
|
|
|
|
|
io.Fonts->TexID = (ImTextureID)(intptr_t)g_FontTexture;
|
|
|
|
|
io.Fonts->SetTexID((ImTextureID)(intptr_t)g_FontTexture);
|
|
|
|
|
|
|
|
|
|
// Restore state
|
|
|
|
|
glBindTexture(GL_TEXTURE_2D, last_texture);
|
|
|
|
|