Skip to content

Commit

Permalink
Merge pull request #259 from lanodan/bugfix/opengl_glvnd
Browse files Browse the repository at this point in the history
meson.build: Fallback from libGL to libOpenGL when GLX is disabled
  • Loading branch information
ebassi authored Jul 2, 2024
2 parents 2df68f8 + 1b04d1b commit f13c13c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ endif
# Dependencies
dl_dep = cc.find_library('dl', required: false)
gl_dep = dependency('gl', required: false)
if not gl_dep.found() and not build_glx
gl_dep = dependency('opengl', required: false)
endif
egl_dep = dependency('egl', required: false)
elg_headers_dep = egl_dep.partial_dependency(compile_args: true, includes: true)

Expand Down
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ meson.override_dependency('epoxy', libepoxy_dep)
# pkg-config file, for consumers of Epoxy
gl_reqs = []
if gl_dep.found() and gl_dep.type_name() == 'pkgconfig'
gl_reqs += 'gl'
gl_reqs += gl_dep.name()
endif
if build_egl and egl_dep.found() and egl_dep.type_name() == 'pkgconfig'
gl_reqs += 'egl'
Expand Down

0 comments on commit f13c13c

Please sign in to comment.