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: Derek Foreman <derek.foreman@collabora.com> Tested-by: Connor Abbott <cwabbott0@gmail.com>
parent
0a483706
Loading
Loading
Pipeline
#1216959
passed
with stages
in
10 minutes and 59 seconds
Loading
Please register or sign in to comment