From 2d078a3686fa862057130fe2aa835ec9a3faf713 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 26 Jan 2017 09:42:49 +0200 Subject: Make capture_reset reset whole GL structure --- glcapture.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/glcapture.c b/glcapture.c index 5fb7cb9..4338550 100644 --- a/glcapture.c +++ b/glcapture.c @@ -452,8 +452,7 @@ reset_capture(struct gl *gl) } WARNX("capture reset"); - memset(gl->pbo, 0, sizeof(gl->pbo)); - gl->active = 0; + *gl = (struct gl){0}; } static void -- cgit v1.2.3-70-g09d2