mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
vo_opengl: switch to new OpenGL backend API for icc-profile-auto
The current code just segfaults.
This commit is contained in:
parent
f7ca2c83e1
commit
fa7b22c687
@ -241,7 +241,7 @@ static bool get_and_update_icc_profile(struct gl_priv *p, int *events)
|
||||
if (p->icc_opts->profile_auto) {
|
||||
MP_VERBOSE(p, "Querying ICC profile...\n");
|
||||
bstr icc = bstr0(NULL);
|
||||
int r = p->glctx->vo_control(p->vo, events, VOCTRL_GET_ICC_PROFILE, &icc);
|
||||
int r = mpgl_control(p->glctx, events, VOCTRL_GET_ICC_PROFILE, &icc);
|
||||
|
||||
if (r != VO_NOTAVAIL) {
|
||||
if (r == VO_FALSE) {
|
||||
|
Loading…
Reference in New Issue
Block a user