Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix compiling Dolphin on devices that provide crazy GLES drivers
  • Loading branch information
Sonicadvance1 committed Mar 5, 2013
1 parent b7db96e commit 3ac7ee4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/Src/GLInterface/EGL_X11.cpp
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions Source/Core/DolphinWX/Src/GLInterface/EGL_X11.h
Expand Up @@ -20,6 +20,7 @@
#include <EGL/egl.h>
#ifdef USE_GLES
#include <GLES2/gl2.h>
#include <X11/Xutil.h>
#else
#include <GL/glxew.h>
#include <GL/gl.h>
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/Src/X11Utils.cpp
Expand Up @@ -16,7 +16,6 @@
// http://code.google.com/p/dolphin-emu/

#include "X11Utils.h"
#include "WxUtils.h"

#include <unistd.h>
#include <spawn.h>
Expand All @@ -27,6 +26,7 @@ extern char **environ;
#if defined(HAVE_WX) && HAVE_WX
#include <string>
#include <algorithm>
#include "WxUtils.h"
#endif

namespace X11Utils
Expand Down

0 comments on commit 3ac7ee4

Please sign in to comment.