diff options
-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; } |