Re: [Mesa-dev] [PATCH] glx: Check that swap_buffers_reply is non-NULL before using it

2013-01-28 Thread Brian Paul
On 01/28/2013 04:11 PM, Stéphane Marchesin wrote: Check that the return value from xcb_dri2_swap_buffers_reply is non-NULL before accessing the struct members. --- src/glx/dri2_glx.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_g

[Mesa-dev] [PATCH] glx: Check that swap_buffers_reply is non-NULL before using it

2013-01-28 Thread Stéphane Marchesin
Check that the return value from xcb_dri2_swap_buffers_reply is non-NULL before accessing the struct members. --- src/glx/dri2_glx.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index a51716f..78a2a42 100644 --- a/src/glx/dri2_