summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_opengl2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_out/video_out_opengl2.c b/src/video_out/video_out_opengl2.c
index 982cfe0bd..b020394ab 100644
--- a/src/video_out/video_out_opengl2.c
+++ b/src/video_out/video_out_opengl2.c
@@ -639,6 +639,7 @@ static void opengl2_overlay_end (vo_driver_t *this_gen, vo_frame_t *vo_img)
this->overlays[i].ovl_w = 0;
this->overlays[i].ovl_h = 0;
glDeleteTextures( 1, &this->overlays[i].tex );
+ this->overlays[i].tex = 0;
}
glXMakeCurrent( this->display, None, NULL );