summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-01-26 09:42:49 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2017-01-26 09:42:49 +0200
commit2d078a3686fa862057130fe2aa835ec9a3faf713 (patch)
treed310d6b7ed9eb1c1939f63f37d25de1f7d252595
parentcf82d357a09cfeade52f652f7e8a47e674ced28d (diff)
Make capture_reset reset whole GL structure
-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