mirror of https://github.com/mpv-player/mpv
vo_opengl: improve missing function warning
Mostly a cosmetic change. Handling bultin and extension functions separaterly makes more sense here too.
This commit is contained in:
parent
7ea22fe889
commit
b753c229f7
|
@ -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);
|
void *ptr = get_fn(fn_ctx, fn->name);
|
||||||
if (!ptr) {
|
if (!ptr) {
|
||||||
all_loaded = false;
|
all_loaded = false;
|
||||||
mp_warn(log, "Required function '%s' not "
|
if (must_exist) {
|
||||||
"found for %s OpenGL %d.%d.\n", fn->name,
|
mp_err(log, "GL %d.%d function %s not found.\n",
|
||||||
section->extension ? section->extension : "builtin",
|
MPGL_VER_GET_MAJOR(ver_core),
|
||||||
MPGL_VER_GET_MAJOR(ver_core),
|
MPGL_VER_GET_MINOR(ver_core), fn->name);
|
||||||
MPGL_VER_GET_MINOR(ver_core));
|
|
||||||
if (must_exist)
|
|
||||||
goto error;
|
goto error;
|
||||||
|
} else {
|
||||||
|
mp_warn(log, "Function %s from extension %s not found.\n",
|
||||||
|
fn->name, section->extension);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
assert(i < MAX_FN_COUNT);
|
assert(i < MAX_FN_COUNT);
|
||||||
|
|
Loading…
Reference in New Issue