Commit Graph

37 Commits (fb0b559d04f5399c3638baac1ca44bfe261608e6)

Author SHA1 Message Date
flightlessman fb0b559d04 inject_glx: fix unititalized warning 2 months ago
flightlessmango 3f0ecf769d Fix minecraft-launcher issue
GlxMakeCurrent fails for some reason in minecraft-launcher.
Bypassing it by blacklisting is not sufficient as it still
runs GlxMakeCurrent, so we bypass using that function for
minecraft-launcher completely
2 months ago
Alessandro Toia b26baa21fc fix accidental deletion 8 months ago
Alessandro Toia c925688954 Cast procName to const char* to be able to print with SPDLOG 8 months ago
Alessandro Toia 30c7755111 Fix build error with fmt lib 8 months ago
jackun e61321717e
[OpenGL] Use MESA_query_renderer if avail; GL "WSI" enum 1 year ago
Hannes Mann e1f41bbb92 glx,egl,vulkan: Limit FPS early or late depending on config 1 year ago
Emil Velikov eecd451068 meson: build with -Werror=missing-declarations
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
Emil Velikov f1a86fe10f inject: drop unneeded declarations/function
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
azn1999 f7a1cc159c Fix FPS limiter
Note: the egl limiter is already correct
1 year ago
jackun 8a628e6a77
Rename GL files to avoid some confusion with upstream Dear ImGui files 2 years ago
jackun a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time 3 years ago
jackun 2f807a4c0d
Add `spdlog` wrap and logging 3 years ago
jackun afa50a17c4
[OpenGL] Add gl_size_query, gl_bind_framebuffer, gl_dont_flip options for workarounds
`gl_size_query = viewport` - specify what to use for getting display size. Options are "viewport", "scissorbox" or disabled. Defaults to using glXQueryDrawable.
`gl_bind_framebuffer = 0` - (re)bind given framebuffer before MangoHud gets drawn. Helps with Crusader Kings 3.
`gl_dont_flip = 1` - don't swap origin if using GL_UPPER_LEFT. Helps with Ryujinx.
3 years ago
jackun 41034b1089
[OpenGL] Return -1 instead for glXSwapBuffersMscOML if it is null 3 years ago
jackun 439ff716c2
[OpenGL] Some nullptr guards
Maybe helps issue #355
3 years ago
jackun 60940e5a02
[OpenGL] Just "refcount" by glXCreate/DestroyContext calls; recreate "lost" objects 4 years ago
Lars Krämer 20221217d4 Frame-timing using chrono 4 years ago
jackun 5ad67fe446
Remove unused vars 4 years ago
FlightlessMango 0e396186a6 [OpenGL] Always use QueryDrawable 4 years ago
jackun beee2b08c7
[OpenGL] Add glXSwapBuffersMscOML and disable XGetGeometry 4 years ago
jackun 0271aa6368
[OpenGL] Track threads with context, but might as well ignore glXMakeCurrent(NULL, NULL) calls probably 4 years ago
jackun 934dc31e44
Add utility lib with dlsym hooking 4 years ago
Sporif d1e90b5bec [OpenGL] Add blacklist functionality 4 years ago
jackun f35e49defa
[OpenGL] Merge "shared" files back to imgui_hud.cpp 4 years ago
jackun d81dc7936a
[OpenGL] Use glXQueryDrawable if XGetGeometry fails 4 years ago
jackun ff3c58c9c5
[OpenGL] Change glXMakeCurrent return type to int just in case and convert missed #ifdefs 4 years ago
jackun f3f04f3f78
Print dlerror() in lib loaders 4 years ago
jackun 780ea7c89b
[OpenGL] Use GLAD instead on gl3w and hook EGL 4 years ago
jackun 772ab6aa5b
[OpenGL] Don't exit if function is not found, it probably isn't catastrophic 4 years ago
jackun 8cd3172335
[OpenGL] Separate GLX out from shareable code so wayland sessions can just use EGL, hopefully 4 years ago
jackun bd9d9650a0
Move `dlsym` hook out from inject_glx.cpp 4 years ago
jackun 0a36578adf
[OpenGL] Rename GLX loader functions 4 years ago
jackun b2e6727b25
[OpenGL] Rename loader_gl.* to loader_glx.* 4 years ago
jackun 59113b3ae2
[OpenGL] Move ImGui functions to separate file 4 years ago
jackun accac3a015
[OpenGL] Import XGetGeometry 4 years ago
jackun ebe23d3431
[OpenGL] Rename inject.cpp to inject_glx.cpp in preparation for separating X11 related functions 4 years ago