diff options
-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 a991e222..72996157 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -408,8 +408,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 || |