[OpenGL] Check if X11 is enabled

pull/131/head
jackun 4 years ago
parent 0373383581
commit e750173b51
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -56,7 +56,6 @@ vklayer_files = files(
opengl_files = files(
'gl/imgui_hud.cpp',
'gl/inject_glx.cpp',
'gl/real_dlsym.cpp',
'gl/imgui_impl_opengl3.cpp',
'loaders/loader_gl.cpp',
@ -71,6 +70,14 @@ if get_option('with_xnvctrl').enabled()
)
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'
inc_opengl = include_directories('gl/gl3w')

Loading…
Cancel
Save