diff options
-rw-r--r-- | sway/desktop/output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 29666c00..d4115be8 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -240,7 +240,8 @@ static void render_surface_iterator(struct wlr_surface *surface, int sx, int sy, | |||
240 | pixman_region32_t *output_damage = data->damage; | 240 | pixman_region32_t *output_damage = data->damage; |
241 | float alpha = data->alpha; | 241 | float alpha = data->alpha; |
242 | 242 | ||
243 | if (!wlr_surface_has_buffer(surface)) { | 243 | struct wlr_texture *texture = wlr_surface_get_texture(surface); |
244 | if (texture == NULL) { | ||
244 | return; | 245 | return; |
245 | } | 246 | } |
246 | 247 | ||
@@ -259,8 +260,7 @@ static void render_surface_iterator(struct wlr_surface *surface, int sx, int sy, | |||
259 | wlr_matrix_project_box(matrix, &box, transform, rotation, | 260 | wlr_matrix_project_box(matrix, &box, transform, rotation, |
260 | wlr_output->transform_matrix); | 261 | wlr_output->transform_matrix); |
261 | 262 | ||
262 | render_texture(wlr_output, output_damage, surface->texture, &box, matrix, | 263 | render_texture(wlr_output, output_damage, texture, &box, matrix, alpha); |
263 | alpha); | ||
264 | } | 264 | } |
265 | 265 | ||
266 | static void render_layer(struct sway_output *output, | 266 | static void render_layer(struct sway_output *output, |