shithub: qk1

Download patch

ref: bcbfa16724e5ae7f9ec16264fa98fadc858c070b
parent: a31cb3c76e7a74954b39dfa7155036e2e848e3ab
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Jan 2 20:48:34 EST 2024

blendfog: don't turn pitch black into transparent

--- a/r_fog.h
+++ b/r_fog.h
@@ -27,7 +27,8 @@
 	return
 		((fog.v[0] + ((inva*((pix>> 0)&0xff))<<fogshift)) >> (8 + fogshift)) << 0 |
 		((fog.v[1] + ((inva*((pix>> 8)&0xff))<<fogshift)) >> (8 + fogshift)) << 8 |
-		((fog.v[2] + ((inva*((pix>>16)&0xff))<<fogshift)) >> (8 + fogshift)) << 16;
+		((fog.v[2] + ((inva*((pix>>16)&0xff))<<fogshift)) >> (8 + fogshift)) << 16|
+		(pix & (0xff<<24));
 }
 
 static inline bool