aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-10-23 09:09:12 -0400
committerTony Crisci <tony@dubstepdish.com>2017-10-23 09:09:12 -0400
commit6e7caaee6be066a742f732a40bbb713866d410b4 (patch)
tree4be23291cd9d267cb85f45e6af5a7f24fcc2c726
parent75f0a6c998cb1135660d78f4806026f80017a290 (diff)
Revert "wlr-surface: destroy texture on null buffer commit"
This reverts commit 0e7d13fab7f23658a85df58ad26c6c77c9638bff.
-rw-r--r--types/wlr_surface.c3
1 files changed, 1 insertions, 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 ||