mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-24 13:49:01 +08:00
Merge pull request #378 from Gargaj/patch-1
Examples: DirectX9: NULL out font texture on Invalidate so NewFrame() can be called directly without ImGui_ImplDX9_CreateDeviceObjects()
This commit is contained in:
commit
42529f1270
@ -285,6 +285,7 @@ void ImGui_ImplDX9_InvalidateDeviceObjects()
|
|||||||
tex->Release();
|
tex->Release();
|
||||||
ImGui::GetIO().Fonts->TexID = 0;
|
ImGui::GetIO().Fonts->TexID = 0;
|
||||||
}
|
}
|
||||||
|
g_FontTexture = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImGui_ImplDX9_NewFrame()
|
void ImGui_ImplDX9_NewFrame()
|
||||||
|
Loading…
Reference in New Issue
Block a user