From 17a289e36e920ebf18af6e9215388ee6c20029c7 Mon Sep 17 00:00:00 2001 From: Roman Gilg Date: Sun, 27 Feb 2022 22:44:36 +0100 Subject: render: allow texture creation while rendering This removes an artificial limitation in form of an assert that disallowed the creation of textures while the renderer is rendering. A consumer might run its own rendering pipeline and after start of the renderer still want to create textures for internal usage. --- render/wlr_texture.c | 1 - 1 file changed, 1 deletion(-) (limited to 'render') diff --git a/render/wlr_texture.c b/render/wlr_texture.c index c4563dd6..2cdf08c5 100644 --- a/render/wlr_texture.c +++ b/render/wlr_texture.c @@ -63,7 +63,6 @@ struct wlr_texture *wlr_texture_from_dmabuf(struct wlr_renderer *renderer, struct wlr_texture *wlr_texture_from_buffer(struct wlr_renderer *renderer, struct wlr_buffer *buffer) { - assert(!renderer->rendering); if (!renderer->impl->texture_from_buffer) { return NULL; } -- cgit v1.2.3