diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-08 10:04:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-08 10:04:33 -0400 |
commit | 1908d88fab23660e863928d8fc874bad4593b087 (patch) | |
tree | 6c04d433e9a1203554639d21fad3f1197cef5cee /backend/drm/renderer.c | |
parent | 2f36e78de1da5ca8ef3a975674b02bcc988cd06a (diff) | |
parent | c0e5feea37dbc95675face03bc4707ad09db20b8 (diff) |
Merge pull request #236 from ascent12/gl-loader
Add GL/EGL extension loader generator
Diffstat (limited to 'backend/drm/renderer.c')
-rw-r--r-- | backend/drm/renderer.c | 3 |
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()); |