1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-17 04:58:06 +00:00

vaapi/GLX: remove a direct reference to an GL symbol

Instead go through our function loader.
This commit is contained in:
wm4 2014-12-06 01:40:23 +01:00
parent 7df2632f71
commit df36470611

View File

@ -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;
}