Use shared font atlas and fix crash when opening overlay in some games.

This commit is contained in:
Mr_Goldberg
2022-08-21 03:45:11 -04:00
parent de6805dd8b
commit c9a102ee30
9 changed files with 25 additions and 20 deletions

View File

@ -84,7 +84,7 @@ void OpenGLX_Hook::_PrepareForOverlay(Display* display, GLXDrawable drawable)
{
if( !_Initialized )
{
ImGui::CreateContext();
ImGui::CreateContext((ImFontAtlas *)ImGuiFontAtlas);
ImGui_ImplOpenGL3_Init();
//int attributes[] = { //can't be const b/c X11 doesn't like it. Not sure if that's intentional or just stupid.