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.
This commit is contained in:
Roman Gilg 2022-02-27 22:44:36 +01:00
parent e279266f71
commit 17a289e36e
2 changed files with 0 additions and 13 deletions

View file

@ -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;
}