mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-11-11 19:10:55 +00:00
[OpenGL] Check if X11 is enabled
This commit is contained in:
parent
0373383581
commit
e750173b51
@ -56,7 +56,6 @@ vklayer_files = files(
|
|||||||
|
|
||||||
opengl_files = files(
|
opengl_files = files(
|
||||||
'gl/imgui_hud.cpp',
|
'gl/imgui_hud.cpp',
|
||||||
'gl/inject_glx.cpp',
|
|
||||||
'gl/real_dlsym.cpp',
|
'gl/real_dlsym.cpp',
|
||||||
'gl/imgui_impl_opengl3.cpp',
|
'gl/imgui_impl_opengl3.cpp',
|
||||||
'loaders/loader_gl.cpp',
|
'loaders/loader_gl.cpp',
|
||||||
@ -71,6 +70,14 @@ if get_option('with_xnvctrl').enabled()
|
|||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if get_option('with_x11').enabled()
|
||||||
|
pre_args += '-DHAVE_X11'
|
||||||
|
opengl_files += files(
|
||||||
|
'gl/inject_glx.cpp',
|
||||||
|
# 'loaders/loader_glx.cpp',
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
pre_args += '-DHOOK_DLSYM'
|
pre_args += '-DHOOK_DLSYM'
|
||||||
inc_opengl = include_directories('gl/gl3w')
|
inc_opengl = include_directories('gl/gl3w')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user