Commit Graph

80 Commits (079f67a7295a47eb2ca98a79f95ecf22dd17a5e1)

Author SHA1 Message Date
jackun 5afbe10005
[OpenGL] Restore ImGui's context to previously saved one, duh 4 years ago
jackun 6eb2c9bc09
[OpenGL] Explicitly set ImGui's context and treat global context as foreign
Apps might be using Dear ImGui so keep our stuff separate from theirs.

Issue #107
4 years ago
jackun e72a7bdd76
[config] Try to set notifier file descriptor to non-blocking mode; add start/stop_notifier functions
If setting to non-blocking fails, just closing the fd should kill it anyway
4 years ago
jackun 053a07d83c
[OpenGL] Don't set display size to scissor box if its size is just 1 by 1 4 years ago
jackun c7bee1a99d
[OpenGL] Compare if viewport or scissor box size changed with window resizing and use that for display size 4 years ago
jackun 6ad6bffade
Use ImGui's DisplaySize so display size for layer positioning etc can be set the same way for vulkan and OpenGL 4 years ago
jackun 8aa0783b4a
Show vulkan/opengl version
OpenGL glGetIntegerv(GL_[MAJOR|MINOR]_VERSION) don't work on versions < 3.0 though
4 years ago
jackun bb3aba9080
[OpenGL] Use elfhacks to load real OpenGL functions 4 years ago
jackun 5bdfcd493d
[config] Add config file change notifier to OpenGL 4 years ago
FlightlessMango c5dad16612 Listen for modify on config file 4 years ago
FlightlessMango b0e1fe9321 [params] set targetFrameTime in params.cpp 4 years ago
jackun abef561573
Disable CPU stat(s) if it failed to initialize 4 years ago
FlightlessMango b3286cbe48 check if opengl/vulkan with is_vulkan bool 4 years ago
jackun c850507314
[OpenGL] Initialize MangoHud from glXSwapBuffers even if glXMakeCurrent is skipped for some reason 4 years ago
jackun 125dbc1403
[OpenGL] Allow swap interval of -1 for adaptive sync, if supported 4 years ago
FlightlessMango b4cd837328 [OpenGL] custom font file 4 years ago
jackun 31a651133c
[OpenGL] Cleanup stderr output a little 4 years ago
jackun bbfad2e073
[OpenGL] Parse and initialize configuration just once 4 years ago
jackun a52dce875f
[OpenGL] Keep glClipControl local to imgui_impl_opengl3.cpp 4 years ago
jackun 05d61ee77e
Init CPUStats just once 4 years ago
jackun 5caeb10882
[OpenGL] Apply swap interval from glXMakeCurrent 4 years ago
jackun 297b44bfe6
[OpenGL] Force-load libGL.so.1 with dlopen() if dlsym fails to find functions 4 years ago
jackun e0ce0493f7
[OpenGL] Set swap interval (vsync) with `gl_vsync` param 4 years ago
jackun 37e34335ae
Sprinkle NDEBUG over gl debug prints 4 years ago
jackun ad598f7ec4
[OpenGL] Fix double-free with ImGui context 4 years ago
jackun 4761078133
Fix small font for gl 4 years ago
jackun c88b930a37
Match gl PushPopStyle count with vulkan's 4 years ago
jackun bc7db582bd
Single ImGui context for OpenGL
Seems only VAO is not shareable between OpenGL context
but that gets recreated every render anyway.
4 years ago
FlightlessMango 906a8cde23 added param frametime_color 4 years ago
FlightlessMango a2735693ba Merge opengl into develop 4 years ago