From 515679e4fed1c7c762a8c269fca09cbb195a4323 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 10 Nov 2019 14:31:33 +0100 Subject: 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 --- render/meson.build | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'render/meson.build') 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], ) -- cgit v1.2.3