aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-10-08 13:19:25 +1300
committerScott Anderson <ascent12@hotmail.com>2017-10-08 13:23:41 +1300
commitc0e5feea37dbc95675face03bc4707ad09db20b8 (patch)
treea2309c2885ad4c88d5e46bd8f8e2ba6935c326b9 /backend/drm
parent543601e86c24ad6ed630aba0cf615bfb585c19e7 (diff)
Add GL/EGL extension loader generator
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/renderer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c
index c5840436..0d338490 100644
--- a/backend/drm/renderer.c
+++ b/backend/drm/renderer.c
@@ -14,6 +14,7 @@
#include <wlr/render/gles2.h>
#include <wlr/render.h>
#include "backend/drm/drm.h"
+#include "render/glapi.h"
bool wlr_drm_renderer_init(struct wlr_drm_backend *drm,
struct wlr_drm_renderer *renderer) {
@@ -191,7 +192,7 @@ static struct wlr_texture *get_tex_for_bo(struct wlr_drm_renderer *renderer, str
EGL_NONE,
};
- tex->img = renderer->egl.eglCreateImageKHR(renderer->egl.display, EGL_NO_CONTEXT,
+ tex->img = eglCreateImageKHR(renderer->egl.display, EGL_NO_CONTEXT,
EGL_LINUX_DMA_BUF_EXT, NULL, attribs);
if (!tex->img) {
wlr_log(L_ERROR, "Failed to create EGL image: %s", egl_error());