summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glcapture.c3
1 files changed, 1 insertions, 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