diff options
author | wm4 <wm4@nowhere> | 2014-12-06 01:40:23 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-06 01:40:23 +0100 |
commit | df3647061174a3375bf112b6eb4a1ddd572900fa (patch) | |
tree | e8bd434116b1d0e715aafcac691dc7ece1ffd1a0 | |
parent | 7df2632f713bcee53cf7c0d09bea26595100cc37 (diff) | |
download | mpv-df3647061174a3375bf112b6eb4a1ddd572900fa.tar.bz2 mpv-df3647061174a3375bf112b6eb4a1ddd572900fa.tar.xz |
vaapi/GLX: remove a direct reference to an GL symbol
Instead go through our function loader.
-rw-r--r-- | video/out/gl_hwdec_vaglx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/gl_hwdec_vaglx.c b/video/out/gl_hwdec_vaglx.c index 3d7af74d19..d93fa6253e 100644 --- a/video/out/gl_hwdec_vaglx.c +++ b/video/out/gl_hwdec_vaglx.c @@ -38,6 +38,7 @@ struct priv { static void destroy_texture(struct gl_hwdec *hw) { struct priv *p = hw->priv; + GL *gl = hw->gl; VAStatus status; if (p->vaglx_surface) { @@ -48,7 +49,7 @@ static void destroy_texture(struct gl_hwdec *hw) p->vaglx_surface = NULL; } - glDeleteTextures(1, &p->gl_texture); + gl->DeleteTextures(1, &p->gl_texture); p->gl_texture = 0; } |