summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index b01d2cf..49dfc43 100644
--- a/main.c
+++ b/main.c
@@ -299,6 +299,7 @@ mkfb(Rectangle r)
fb->zb = eallocmemimage(r, RGBA32);
fb->zbuf = emalloc(Dx(r)*Dy(r)*sizeof(*fb->zbuf));
memsetd(fb->zbuf, Inf(-1), Dx(r)*Dy(r));
+ memset(&fb->zbuflk, 0, sizeof(fb->zbuflk));
fb->nb = eallocmemimage(r, RGBA32); /* XXX DBG */
fb->r = r;
return fb;