diff options
author | Simon Ser <contact@emersion.fr> | 2019-11-10 14:31:33 +0100 |
---|---|---|
committer | Scott Anderson <scott@anderso.nz> | 2019-12-20 01:03:34 +0000 |
commit | 515679e4fed1c7c762a8c269fca09cbb195a4323 (patch) | |
tree | 04e4011d75869e07839c2783efaaf52655cb1dbd /render/meson.build | |
parent | 774548696c0a5f3164a3ce5a85d893da6c3b18be (diff) |
Refactor EGL/GL API loading
Remove glapi.sh code generation, replace it with hand-written loading
code that checks extension strings before calling eglGetProcAddress.
The GLES2 renderer still uses global state because of:
- {PUSH,POP}_GLES2_DEBUG macros
- wlr_gles2_texture_from_* taking a wlr_egl instead of the renderer
Diffstat (limited to 'render/meson.build')
-rw-r--r-- | render/meson.build | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/render/meson.build b/render/meson.build index 87577aba..79daba93 100644 --- a/render/meson.build +++ b/render/meson.build @@ -1,12 +1,3 @@ -glgen = find_program('../glgen.sh') - -glapi = custom_target( - 'glapi', - input: 'glapi.txt', - output: ['@BASENAME@.c', '@BASENAME@.h'], - command: [glgen, '@INPUT@', '@OUTDIR@'], -) - lib_wlr_render = static_library( 'wlr_render', files( @@ -20,7 +11,6 @@ lib_wlr_render = static_library( 'wlr_renderer.c', 'wlr_texture.c', ), - glapi, include_directories: wlr_inc, dependencies: [ egl, @@ -33,5 +23,4 @@ lib_wlr_render = static_library( wlr_render = declare_dependency( link_with: lib_wlr_render, - sources: glapi[1], ) |