Skip to content
Commit 060f010c authored by Philipp Zabel's avatar Philipp Zabel Committed by Marius Vlad
Browse files

compositor: access correct weston_buffer union field according to type



Stop writing weston_buffer::shm_buffer when weston_buffer::type is not
WESTON_BUFFER_SHM. Instead, explicitly write to the union field
that corresponds to the buffer type.
Also add a comment why we clear the shm_buffer/dmabuf/legacy_buffer
pointer here.

Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent c3321d58
Pipeline #1206113 passed with stages
in 4 minutes and 26 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment