Skip to content

Commit f13c13c

Browse files
authored
Merge pull request #259 from lanodan/bugfix/opengl_glvnd
meson.build: Fallback from libGL to libOpenGL when GLX is disabled
2 parents 2df68f8 + 1b04d1b commit f13c13c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

meson.build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ endif
165165
# Dependencies
166166
dl_dep = cc.find_library('dl', required: false)
167167
gl_dep = dependency('gl', required: false)
168+
if not gl_dep.found() and not build_glx
169+
gl_dep = dependency('opengl', required: false)
170+
endif
168171
egl_dep = dependency('egl', required: false)
169172
elg_headers_dep = egl_dep.partial_dependency(compile_args: true, includes: true)
170173

src/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ meson.override_dependency('epoxy', libepoxy_dep)
100100
# pkg-config file, for consumers of Epoxy
101101
gl_reqs = []
102102
if gl_dep.found() and gl_dep.type_name() == 'pkgconfig'
103-
gl_reqs += 'gl'
103+
gl_reqs += gl_dep.name()
104104
endif
105105
if build_egl and egl_dep.found() and egl_dep.type_name() == 'pkgconfig'
106106
gl_reqs += 'egl'

0 commit comments

Comments
 (0)