ref: 083e03785a1d2441f84e72c3adbdee95c2230b33
parent: d60d6cd1d01d25dd4931e8c3d3f2f9476cfe2a4b
author: rodri <rgl@antares-labs.eu>
date: Tue Dec 19 07:11:39 EST 2023
initialize the zbuflk to zero.
--- a/main.c
+++ b/main.c
@@ -299,6 +299,7 @@
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;