From 6e7caaee6be066a742f732a40bbb713866d410b4 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Mon, 23 Oct 2017 09:09:12 -0400 Subject: [PATCH] Revert "wlr-surface: destroy texture on null buffer commit" This reverts commit 0e7d13fab7f23658a85df58ad26c6c77c9638bff. --- types/wlr_surface.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/wlr_surface.c b/types/wlr_surface.c index f8689d8e..79905fae 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -406,8 +406,7 @@ static void wlr_surface_commit_pending(struct wlr_surface *surface) { wlr_surface_move_state(surface, surface->pending, surface->current); if (null_buffer_commit) { - wlr_texture_destroy(surface->texture); - surface->texture = NULL; + surface->texture->valid = false; } bool reupload_buffer = oldw != surface->current->buffer_width ||