diff options
author | wm4 <wm4@nowhere> | 2016-06-22 21:55:00 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-22 21:55:00 +0200 |
commit | b753c229f707fd62a3b71cff43b02de84f4129e7 (patch) | |
tree | 8728f3e8a67a42537d103b01eda354bbee696790 /video/out/opengl/common.c | |
parent | 7ea22fe889fececeb653daa5f957ae600d7bb616 (diff) | |
download | mpv-b753c229f707fd62a3b71cff43b02de84f4129e7.tar.bz2 mpv-b753c229f707fd62a3b71cff43b02de84f4129e7.tar.xz |
vo_opengl: improve missing function warning
Mostly a cosmetic change. Handling bultin and extension functions
separaterly makes more sense here too.
Diffstat (limited to 'video/out/opengl/common.c')
-rw-r--r-- | video/out/opengl/common.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c index 1c5aa0a2cf..dd44165b81 100644 --- a/video/out/opengl/common.c +++ b/video/out/opengl/common.c @@ -529,13 +529,15 @@ void mpgl_load_functions2(GL *gl, void *(*get_fn)(void *ctx, const char *n), void *ptr = get_fn(fn_ctx, fn->name); if (!ptr) { all_loaded = false; - mp_warn(log, "Required function '%s' not " - "found for %s OpenGL %d.%d.\n", fn->name, - section->extension ? section->extension : "builtin", - MPGL_VER_GET_MAJOR(ver_core), - MPGL_VER_GET_MINOR(ver_core)); - if (must_exist) + if (must_exist) { + mp_err(log, "GL %d.%d function %s not found.\n", + MPGL_VER_GET_MAJOR(ver_core), + MPGL_VER_GET_MINOR(ver_core), fn->name); goto error; + } else { + mp_warn(log, "Function %s from extension %s not found.\n", + fn->name, section->extension); + } break; } assert(i < MAX_FN_COUNT); |