From 4c87af597598c6131a44821998732cfae12778d2 Mon Sep 17 00:00:00 2001 From: fzurita Date: Fri, 4 Oct 2019 10:32:19 -0400 Subject: [PATCH] Don't initialize EGL, this is causing issues --- .../mupen64plus/mupen64plus_DisplayWindow.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/Graphics/OpenGLContext/mupen64plus/mupen64plus_DisplayWindow.cpp b/src/Graphics/OpenGLContext/mupen64plus/mupen64plus_DisplayWindow.cpp index 335bb7bc..8a3c98a0 100644 --- a/src/Graphics/OpenGLContext/mupen64plus/mupen64plus_DisplayWindow.cpp +++ b/src/Graphics/OpenGLContext/mupen64plus/mupen64plus_DisplayWindow.cpp @@ -75,21 +75,6 @@ void DisplayWindowMupen64plus::_setAttributes() bool DisplayWindowMupen64plus::_start() { -#ifdef EGL - // Normally this is initialized externally through VidExt, but if VidExt is not implemented, - // do this here anyways. Calling eglInitialize has no negative effect according to the spec - - EGLDisplay display; - if ((display = eglGetDisplay(EGL_DEFAULT_DISPLAY)) == EGL_NO_DISPLAY) { - LOG(LOG_ERROR, "eglGetDisplay() returned error %d", eglGetError()); - return false; - } - if (!eglInitialize(display, nullptr, nullptr)) { - LOG(LOG_ERROR, "eglInitialize() returned error %d", eglGetError()); - return false; - } -#endif - FunctionWrapper::setThreadedMode(config.video.threadedVideo); FunctionWrapper::CoreVideo_Init(); _setAttributes();