aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorRoman Gilg <subdiff@gmail.com>2022-02-27 22:44:36 +0100
committerRoman Gilg <subdiff@gmail.com>2022-02-28 13:06:11 +0100
commit17a289e36e920ebf18af6e9215388ee6c20029c7 (patch)
tree90adf5985e3996a0836f407b0fe45f47d66c95f3 /render
parente279266f714c7122e9ad97d56d047313f78cfdbe (diff)
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.
Diffstat (limited to 'render')
-rw-r--r--render/wlr_texture.c1
1 files changed, 0 insertions, 1 deletions
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;
}