From 2f4bd58f4adc228bed5482cd07ab9478f8dd1924 Mon Sep 17 00:00:00 2001 From: Bin Jin Date: Sun, 3 Jan 2016 22:11:23 +0000 Subject: [PATCH] vo_opengl: reset nnedi3 weights properly Fixes #2661 --- video/out/opengl/video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 6935f9a715..3600dda8c4 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -617,6 +617,7 @@ static void uninit_rendering(struct gl_video *p) p->dither_texture = 0; gl->DeleteBuffers(1, &p->nnedi3_weights_buffer); + p->nnedi3_weights_buffer = 0; fbotex_uninit(&p->chroma_merge_fbo); fbotex_uninit(&p->chroma_deband_fbo);