mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Added the possibility to create new fonts.
Fonts cannot be created after a NewFrame call.
This commit is contained in:
parent
e82579b82c
commit
6c09635600
8 changed files with 70 additions and 50 deletions
|
|
@ -100,11 +100,11 @@ void OpenGLX_Hook::prepareForOverlay(Display* display, GLXDrawable drawable)
|
|||
context = glXCreateContext(display, visual_info, nullptr, True);
|
||||
this->display = display;
|
||||
|
||||
get_steam_client()->steam_overlay->CreateFonts();
|
||||
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
|
||||
auto oldContext = glXGetCurrentContext();
|
||||
|
||||
glXMakeCurrent(display, drawable, context);
|
||||
|
|
@ -114,9 +114,7 @@ void OpenGLX_Hook::prepareForOverlay(Display* display, GLXDrawable drawable)
|
|||
|
||||
ImGui::NewFrame();
|
||||
|
||||
get_steam_client()->steam_overlay->OverlayProc(io.DisplaySize.x, io.DisplaySize.y);
|
||||
|
||||
ImGui::EndFrame();
|
||||
get_steam_client()->steam_overlay->OverlayProc();
|
||||
|
||||
ImGui::Render();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue