aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/output/render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/types/output/render.c b/types/output/render.c
index 50fbfa2b..13d714e1 100644
--- a/types/output/render.c
+++ b/types/output/render.c
@@ -166,7 +166,9 @@ static bool output_attach_empty_back_buffer(struct wlr_output *output,
static bool output_test_with_back_buffer(struct wlr_output *output,
const struct wlr_output_state *state) {
- assert(output->impl->test != NULL);
+ if (output->impl->test == NULL) {
+ return true;
+ }
// Create a shallow copy of the state with the empty back buffer included
// to pass to the backend.