mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
Revert "wlr-surface: destroy texture on null buffer commit"
This reverts commit 0e7d13fab7
.
This commit is contained in:
parent
75f0a6c998
commit
6e7caaee6b
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user