egl: Remove Xdpy from EGLDisplay.

It is not used anymore.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
This commit is contained in:
Chia-I Wu
2009-08-26 16:06:39 +08:00
committed by Brian Paul
parent f5a06fad62
commit e1d978775f
2 changed files with 0 additions and 11 deletions

View File

@@ -81,9 +81,6 @@ _eglNewDisplay(NativeDisplayType nativeDisplay)
_EGLDisplay *dpy = (_EGLDisplay *) calloc(1, sizeof(_EGLDisplay)); _EGLDisplay *dpy = (_EGLDisplay *) calloc(1, sizeof(_EGLDisplay));
if (dpy) { if (dpy) {
dpy->NativeDisplay = nativeDisplay; dpy->NativeDisplay = nativeDisplay;
#if defined(_EGL_PLATFORM_X)
dpy->Xdpy = (Display *) nativeDisplay;
#endif
dpy->DriverName = _eglPreloadDriver(dpy); dpy->DriverName = _eglPreloadDriver(dpy);
if (!dpy->DriverName) { if (!dpy->DriverName) {

View File

@@ -1,10 +1,6 @@
#ifndef EGLDISPLAY_INCLUDED #ifndef EGLDISPLAY_INCLUDED
#define EGLDISPLAY_INCLUDED #define EGLDISPLAY_INCLUDED
#ifdef _EGL_PLATFORM_X
#include <X11/Xlib.h>
#endif
#include "egltypedefs.h" #include "egltypedefs.h"
#include "egldefines.h" #include "egldefines.h"
#include "eglcontext.h" #include "eglcontext.h"
@@ -54,10 +50,6 @@ struct _egl_display
/* lists of linked contexts and surface */ /* lists of linked contexts and surface */
_EGLContext *ContextList; _EGLContext *ContextList;
_EGLSurface *SurfaceList; _EGLSurface *SurfaceList;
#ifdef _EGL_PLATFORM_X
Display *Xdpy;
#endif
}; };