mirror of
https://github.com/mpv-player/mpv
synced 2025-04-10 11:41:37 +00:00
vo_opengl: EGL: silence eglBindAPI() error message
It's not helpful and will be printed with EGL implementations that don't support OpenGL at all. Just shut it up.
This commit is contained in:
parent
9def3682d1
commit
c48bd0ef18
@ -36,7 +36,7 @@ static bool create_context(EGLDisplay display, struct mp_log *log, int msgl,
|
|||||||
mp_msg(log, MSGL_V, "Trying to create %s context.\n", es ? "GLES" : "GL");
|
mp_msg(log, MSGL_V, "Trying to create %s context.\n", es ? "GLES" : "GL");
|
||||||
|
|
||||||
if (!eglBindAPI(es ? EGL_OPENGL_ES_API : EGL_OPENGL_API)) {
|
if (!eglBindAPI(es ? EGL_OPENGL_ES_API : EGL_OPENGL_API)) {
|
||||||
mp_msg(log, msgl, "Could not bind API!\n");
|
mp_msg(log, MSGL_V, "Could not bind API!\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user