aboutsummaryrefslogtreecommitdiff
path: root/render/wlr_texture.c
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-10-01 19:22:47 +1300
committerScott Anderson <ascent12@hotmail.com>2017-10-01 22:29:25 +1300
commit009c3747a8771bcd441dc9cf95823fe40895f1e0 (patch)
treeda696643a64924b6a0bbab3c35f42b10bc097a57 /render/wlr_texture.c
parentfa3d0ed9295d18405ab65f63f329d3def19509a3 (diff)
Multi-GPU DRM
Diffstat (limited to 'render/wlr_texture.c')
-rw-r--r--render/wlr_texture.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/render/wlr_texture.c b/render/wlr_texture.c
index 9faea820..4ce86bdd 100644
--- a/render/wlr_texture.c
+++ b/render/wlr_texture.c
@@ -48,6 +48,11 @@ bool wlr_texture_upload_drm(struct wlr_texture *texture,
return texture->impl->upload_drm(texture, drm_buffer);
}
+bool wlr_texture_upload_eglimage(struct wlr_texture *texture,
+ EGLImageKHR image, uint32_t width, uint32_t height) {
+ return texture->impl->upload_eglimage(texture, image, width, height);
+}
+
void wlr_texture_get_matrix(struct wlr_texture *texture,
float (*matrix)[16], const float (*projection)[16], int x, int y) {
texture->impl->get_matrix(texture, matrix, projection, x, y);