Skip to content
Commit bf7b2311 authored by Marius Vlad's avatar Marius Vlad
Browse files

gl-renderer: Take direct-display into consideration



The buffer_init function added with commit 83b37c0a, "renderers: pull
dmabuf initial setup out of attach", doesn't take into consideration the
the buffer's direct-display property.

Previously, gl_renderer_attach_dmabuf, wasn't being called when dmabuf's
direct-display  was turned on, but with commit 83b37c0a this has been changed.

So with commit 83b37c0a, linux_dmabuf_buffer_get_user_data will never
return a valid gb (gl buffer state), causing a crash using
direct-display extension. This adds an explicit check to return early
when this happens.

Fixes: 83b37c0a, "renderers: pull dmabuf initial setup out of attach"
Signed-off-by: default avatarMarius Vlad <marius.vlad@collabora.com>
parent dae61f33
Loading
Loading
Loading
Pipeline #1321468 passed with stages
in 5 minutes and 42 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment