egl/dri: Don't invoke dri2_dpy->flush if it's NULL.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 5 Feb 2013 13:43:01 +0000 (13:43 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 6 Feb 2013 09:22:26 +0000 (09:22 +0000)
commit5048e693926c2016b3e54af39557a675e267ad38
treec5a76aeb605053c7e14abcdcc0cdfafa137f1679
parentd08cee5d80f394d8391c09f8506b2ee97125dcc1
egl/dri: Don't invoke dri2_dpy->flush if it's NULL.

I'd like to test Mesa OpenGL ES along side with NVIDIA libGL drivers. But
without this change, I get a NULL pointer dereference.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/egl/drivers/dri2/egl_dri2.c