Fix attempting to load libX11 when rendering headless. Bug 26776258 Change-Id: I326e76d2650b3992835d74baea159b13f14b2e3e Reviewed-on: https://swiftshader-review.googlesource.com/4720 Tested-by: Nicolas Capens <capn@google.com> Reviewed-by: Alexis Hétu <sugoi@google.com> Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/src/OpenGL/libEGL/main.h b/src/OpenGL/libEGL/main.h index 27e6ef6..8bdfcb2 100644 --- a/src/OpenGL/libEGL/main.h +++ b/src/OpenGL/libEGL/main.h
@@ -30,7 +30,7 @@ { EGLint error; EGLenum API; - Display *display; + EGLDisplay display; Context *context; Surface *drawSurface; Surface *readSurface; @@ -42,8 +42,8 @@ void setCurrentAPI(EGLenum API); EGLenum getCurrentAPI(); - void setCurrentDisplay(Display *dpy); - Display *getCurrentDisplay(); + void setCurrentDisplay(EGLDisplay dpy); + EGLDisplay getCurrentDisplay(); void setCurrentContext(Context *ctx); Context *getCurrentContext(); @@ -55,7 +55,7 @@ Surface *getCurrentReadSurface(); void error(EGLint errorCode); - + template<class T> const T &error(EGLint errorCode, const T &returnValue) {