egl/dri2/x11: Don't clobber _EGLDriver::API
authorChad Versace <chad.versace@linux.intel.com>
Wed, 29 Jan 2014 03:38:39 +0000 (19:38 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 17 Mar 2014 22:39:23 +0000 (15:39 -0700)
commit88b9e600a6c9ad191c4cb9ba981b5aa15bbe2b81
treed9db834b241295378f07c8ea29d74844d4ca6b0c
parenteadd5e0c0a3c4b24c25e6368ea0a8352a8fd0701
egl/dri2/x11: Don't clobber _EGLDriver::API

dri2_initialize_x11_swrast() does a strange thing. For some extensions
it doesn't support, it sets the corresponding functions in
_EGLDriver::API to NULL. The intention here is clear, but misplaced.

NULL or not, the function pointers never get called because their
extensions aren't supported.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/egl/drivers/dri2/platform_x11.c