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();