diff options
-rw-r--r-- | src/rpi-renderer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpi-renderer.c b/src/rpi-renderer.c index a0960334..d0a97974 100644 --- a/src/rpi-renderer.c +++ b/src/rpi-renderer.c @@ -703,6 +703,9 @@ rpir_view_compute_rects(struct rpir_view *view, struct weston_buffer *buffer = view->surface->egl_front->buffer_ref.buffer; + if (!buffer) + return -1; + src_width = buffer->width << 16; src_height = buffer->height << 16; } else { |