egl_dri2: Check for xcb_connect() failure the right way
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 28 May 2010 19:50:11 +0000 (15:50 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 29 May 2010 01:31:22 +0000 (21:31 -0400)
commitc5ddaa2cd71c100fe4aa6da36b6ac1a59e6665e3
tree6ae0b43cd14824236584cbe76610c2f540d4cbec
parentba10b2732b4fe1a9d034a5f9e0e0a31c6b2a5b08
egl_dri2: Check for xcb_connect() failure the right way

It always returns a valid xcb_connection_t, but if connection failed, it's in the
error state.
src/egl/drivers/dri2/egl_dri2.c