egl: Remove Xdpy from EGLDisplay.
authorChia-I Wu <olvaffe@gmail.com>
Wed, 26 Aug 2009 08:06:39 +0000 (16:06 +0800)
committerBrian Paul <brianp@vmware.com>
Wed, 26 Aug 2009 22:40:22 +0000 (16:40 -0600)
It is not used anymore.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/egl/main/egldisplay.c
src/egl/main/egldisplay.h

index 2c271efd670674a6fc771b20cfbb9d3cf36d46c8..896d60dbe1027140318c8ce239c210aebef8c100 100644 (file)
@@ -81,9 +81,6 @@ _eglNewDisplay(NativeDisplayType nativeDisplay)
    _EGLDisplay *dpy = (_EGLDisplay *) calloc(1, sizeof(_EGLDisplay));
    if (dpy) {
       dpy->NativeDisplay = nativeDisplay;
-#if defined(_EGL_PLATFORM_X)
-      dpy->Xdpy = (Display *) nativeDisplay;
-#endif
 
       dpy->DriverName = _eglPreloadDriver(dpy);
       if (!dpy->DriverName) {
index c7a41cd588358c266f42ee332639dc50e25ef1bb..6575fdf198f4b9598f176a5d0a09c03d5619d8c9 100644 (file)
@@ -1,10 +1,6 @@
 #ifndef EGLDISPLAY_INCLUDED
 #define EGLDISPLAY_INCLUDED
 
-#ifdef _EGL_PLATFORM_X
-#include <X11/Xlib.h>
-#endif
-
 #include "egltypedefs.h"
 #include "egldefines.h"
 #include "eglcontext.h"
@@ -54,10 +50,6 @@ struct _egl_display
    /* lists of linked contexts and surface */
    _EGLContext *ContextList;
    _EGLSurface *SurfaceList;
-
-#ifdef _EGL_PLATFORM_X
-   Display *Xdpy;
-#endif
 };