aboutsummaryrefslogtreecommitdiff
path: root/rootston/output.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-06-16 13:43:14 -0700
committerGitHub <noreply@github.com>2018-06-16 13:43:14 -0700
commitfb118ac9966bbb663ddb9964f54c879a0bb88fba (patch)
treedade760bc2597c17f82ba7df48ffdb2f6c7726f8 /rootston/output.c
parentac0f9acb063262f00a949e9d43aa51c84cf1ea97 (diff)
parent225aa815b00502c2d91897c1ac2c4c5c65f82ca5 (diff)
Merge pull request #1062 from emersion/wlr-buffer-comeback
Add back wlr_buffer
Diffstat (limited to 'rootston/output.c')
-rw-r--r--rootston/output.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rootston/output.c b/rootston/output.c
index faa808d1..353d431f 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -189,7 +189,8 @@ static void render_surface(struct wlr_surface *surface, int sx, int sy,
struct roots_output *output = data->output;
float rotation = data->layout.rotation;
- if (!wlr_surface_has_buffer(surface)) {
+ struct wlr_texture *texture = wlr_surface_get_texture(surface);
+ if (texture == NULL) {
return;
}
@@ -230,8 +231,7 @@ static void render_surface(struct wlr_surface *surface, int sx, int sy,
pixman_box32_t *rects = pixman_region32_rectangles(&damage, &nrects);
for (int i = 0; i < nrects; ++i) {
scissor_output(output, &rects[i]);
- wlr_render_texture_with_matrix(renderer, surface->texture, matrix,
- data->alpha);
+ wlr_render_texture_with_matrix(renderer, texture, matrix, data->alpha);
}
damage_finish: