Merge pull request #7 from 9000h/second-tryfix-osd

second tryfix osd
This commit is contained in:
jojo61 2019-10-26 15:55:08 +02:00 committed by GitHub
commit 5653e31466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -921,13 +921,11 @@ static void GlxSetupWindow(xcb_window_t window, int width, int height, EGLContex
// set gl context
#ifdef CUVID
if (!glXMakeCurrent(XlibDisplay, window, context)) {
#else
if (!eglMakeCurrent(eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, context )) {
#endif
Fatal(_("video/egl: GlxSetupWindow can't make egl/glx context current\n"));
EglEnabled = 0;
return;
}
}
#endif
Debug(3, "video/egl: ok\n");
#ifdef CUVID