Skip to content
Commit 376b3952 authored by Derek Foreman's avatar Derek Foreman Committed by Marius Vlad
Browse files

libweston: Store shm buffer stride in weston_buffer



After c08a6ff8 moved attach to the render loop, we have a bad situation
when clients delete an attached shm buffer. We try to query the stride
at attach time, but the shm_buffer has been destroyed, and we crash.

Instead of carefully fixing that, I've instead stored the stride at
buffer creation time (as we already do with buffer width and height).
This lets attach succeed in the gl-renderer, keeping the old texture data
available for any upcoming rendering.

Fixes: #927

Signed-off-by: default avatarDerek Foreman <derek.foreman@collabora.com>
Tested-by: default avatarConnor Abbott <cwabbott0@gmail.com>
parent 0a483706
Loading
Loading
Loading
Pipeline #1216959 passed with stages
in 10 minutes and 59 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