diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-24 08:22:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-24 08:22:06 -0400 |
commit | 93042e844be026e05a3120385af530c406bb695e (patch) | |
tree | e373cdcd302c6ec577272afb1075fe2038efb2e5 | |
parent | 1b7918f50e8b22cbaba978c695b7cc5921125c55 (diff) | |
parent | 6e7caaee6be066a742f732a40bbb713866d410b4 (diff) |
Merge pull request #325 from acrisci/bug/texture-destroy
Revert "wlr-surface: destroy texture on null buffer commit"
-rw-r--r-- | types/wlr_surface.c | 3 |
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 || |