diff options
author | Chad Versace <[email protected]> | 2014-01-28 19:38:39 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2014-03-17 15:39:23 -0700 |
commit | 88b9e600a6c9ad191c4cb9ba981b5aa15bbe2b81 (patch) | |
tree | d9db834b241295378f07c8ea29d74844d4ca6b0c /src/egl/drivers/dri2/platform_x11.c | |
parent | eadd5e0c0a3c4b24c25e6368ea0a8352a8fd0701 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/platform_x11.c')
-rw-r--r-- | src/egl/drivers/dri2/platform_x11.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index e41758b644d..3c97a95c168 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -1029,11 +1029,6 @@ dri2_initialize_x11_swrast(_EGLDriver *drv, _EGLDisplay *disp) { struct dri2_egl_display *dri2_dpy; - drv->API.CreateImageKHR = NULL; - drv->API.DestroyImageKHR = NULL; - drv->API.CreateDRMImageMESA = NULL; - drv->API.ExportDRMImageMESA = NULL; - dri2_dpy = calloc(1, sizeof *dri2_dpy); if (!dri2_dpy) return _eglError(EGL_BAD_ALLOC, "eglInitialize"); |