xo-imgui: restore opengl + vulkan builds
This commit is contained in:
parent
d817c649aa
commit
d9aa1ddc81
15 changed files with 202 additions and 194 deletions
|
|
@ -3,7 +3,7 @@ if (XO_ENABLE_EXAMPLES)
|
|||
|
||||
if (XO_ENABLE_OPENGL)
|
||||
|
||||
# TODO: maybe at some point incorporate imgui sources directly into xo source tree
|
||||
# TODO: maybe incorporate imgui sources into xo-imgui library
|
||||
find_path(IMGUI_INCLUDE_DIR
|
||||
NAMES imgui/imgui.h
|
||||
DOC "path to imgui header"
|
||||
|
|
|
|||
|
|
@ -26,7 +26,12 @@ int main(int, char **)
|
|||
|
||||
std::cout << "Hello, world!" << std::endl;
|
||||
|
||||
SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1");
|
||||
// 500fps with no hint
|
||||
// 60gps with hint
|
||||
//
|
||||
// presumably GLX optimized relative to EGL
|
||||
|
||||
//SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1");
|
||||
|
||||
SDL_Init(SDL_INIT_VIDEO);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue