shithub: 5v

Download patch

ref: c0fef42e25d7b90e3982d6be1d571d631b895ef6
parent: 790fcdabb61b76587b665486f2a3fccdae684986
author: Ori Bernstein <[email protected]>
date: Wed Aug 30 14:19:58 EDT 2023

copy shadow map on rfork

--- a/sys.c
+++ b/sys.c
@@ -410,6 +410,10 @@
 			incref(t->dref);
 			t->data = t->dref + 1;
 			memcpy(t->data, s->data, s->size);
+			if(t->shadow != nil){
+				t->shadow = emalloc((s->size+7)/8);
+				memcpy(t->shadow, s->shadow, (s->size+7)/8);
+			}
 			p->S[i] = t;
 		} else {
 			incref(s->dref);