aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-11-10 14:31:33 +0100
committerScott Anderson <scott@anderso.nz>2019-12-20 01:03:34 +0000
commit515679e4fed1c7c762a8c269fca09cbb195a4323 (patch)
tree04e4011d75869e07839c2783efaaf52655cb1dbd /backend
parent774548696c0a5f3164a3ce5a85d893da6c3b18be (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 'backend')
-rw-r--r--backend/drm/renderer.c1
-rw-r--r--backend/headless/backend.c1
-rw-r--r--backend/rdp/backend.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c
index 9edf7632..25101a4b 100644
--- a/backend/drm/renderer.c
+++ b/backend/drm/renderer.c
@@ -11,7 +11,6 @@
#include <wlr/types/wlr_matrix.h>
#include <wlr/util/log.h>
#include "backend/drm/drm.h"
-#include "glapi.h"
bool init_drm_renderer(struct wlr_drm_backend *drm,
struct wlr_drm_renderer *renderer, wlr_renderer_create_func_t create_renderer_func) {
diff --git a/backend/headless/backend.c b/backend/headless/backend.c
index c0fc6022..d6bb141a 100644
--- a/backend/headless/backend.c
+++ b/backend/headless/backend.c
@@ -6,7 +6,6 @@
#include <wlr/render/gles2.h>
#include <wlr/util/log.h>
#include "backend/headless.h"
-#include "glapi.h"
#include "util/signal.h"
struct wlr_headless_backend *headless_backend_from_backend(
diff --git a/backend/rdp/backend.c b/backend/rdp/backend.c
index ef0fca85..c0b63921 100644
--- a/backend/rdp/backend.c
+++ b/backend/rdp/backend.c
@@ -6,7 +6,6 @@
#include <wlr/render/gles2.h>
#include <wlr/util/log.h>
#include "backend/rdp.h"
-#include "glapi.h"
#include "util/signal.h"
struct wlr_rdp_backend *rdp_backend_from_backend(