<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On 9 October 2014 10:37, Yves De Muyter <span dir="ltr"><<a href="mailto:yves@alfavisio.be" target="_blank">yves@alfavisio.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here is a fix for an issue that pops up here when I close a window on a<br>
Raspberry-pi that is using GLES2 to draw contents.<br>
It also reproducible with the clients/simple-egl application by simply<br>
pressing 'esc' on the window (closes the window) or doing 'ctrl-c' on<br>
the terminal. The result is a Weston crash.<br>
<br>
What happens is that the buffer is set to NULL while still used.<br>
The patch is against current master.<br></blockquote><div><br></div><div>Hmm, I don't think this is quite the right patch ... more a workaround than solving the root problem.</div><div><br></div><div>It seems like the correct patch would be to set surface->buffer_type to BUFFER_TYPE_NULL in, e.g., rpi_renderer_attach, and making sure it's not even considered by the draw stack to begin with. If we ever get to draw a surface with no buffer, we've screwed up somewhere.</div><div><br></div><div>Unfortunately I don't have a RPi with me, so can't test any of this.</div><div><br></div><div>Cheers,</div><div>DanielĀ </div></div></div></div>