summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-06 01:40:23 +0100
committerwm4 <wm4@nowhere>2014-12-06 01:40:23 +0100
commitdf3647061174a3375bf112b6eb4a1ddd572900fa (patch)
treee8bd434116b1d0e715aafcac691dc7ece1ffd1a0
parent7df2632f713bcee53cf7c0d09bea26595100cc37 (diff)
downloadmpv-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.c3
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;
}