mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
Merge pull request #325 from acrisci/bug/texture-destroy
Revert "wlr-surface: destroy texture on null buffer commit"
This commit is contained in:
commit
93042e844b
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue