diff --git a/Source/Core/DolphinWX/Src/GLInterface/EGL_X11.cpp b/Source/Core/DolphinWX/Src/GLInterface/EGL_X11.cpp index c092aced64..ccb2fc04b8 100644 --- a/Source/Core/DolphinWX/Src/GLInterface/EGL_X11.cpp +++ b/Source/Core/DolphinWX/Src/GLInterface/EGL_X11.cpp @@ -141,7 +141,7 @@ bool cInterfaceEGL::Create(void *&window_handle) return false; } - GLWin.egl_surf = eglCreateWindowSurface(GLWin.egl_dpy, config, GLWin.win, NULL); + GLWin.egl_surf = eglCreateWindowSurface(GLWin.egl_dpy, config, (NativeWindowType)GLWin.win, NULL); if (!GLWin.egl_surf) { ERROR_LOG(VIDEO, "Error: eglCreateWindowSurface failed\n"); return false; diff --git a/Source/Core/DolphinWX/Src/GLInterface/EGL_X11.h b/Source/Core/DolphinWX/Src/GLInterface/EGL_X11.h index 513fb2ce4a..e47573e4d8 100644 --- a/Source/Core/DolphinWX/Src/GLInterface/EGL_X11.h +++ b/Source/Core/DolphinWX/Src/GLInterface/EGL_X11.h @@ -20,6 +20,7 @@ #include #ifdef USE_GLES #include +#include #else #include #include diff --git a/Source/Core/DolphinWX/Src/X11Utils.cpp b/Source/Core/DolphinWX/Src/X11Utils.cpp index 3582b9b576..6c4282cceb 100644 --- a/Source/Core/DolphinWX/Src/X11Utils.cpp +++ b/Source/Core/DolphinWX/Src/X11Utils.cpp @@ -16,7 +16,6 @@ // http://code.google.com/p/dolphin-emu/ #include "X11Utils.h" -#include "WxUtils.h" #include #include @@ -27,6 +26,7 @@ extern char **environ; #if defined(HAVE_WX) && HAVE_WX #include #include +#include "WxUtils.h" #endif namespace X11Utils