From a96a9a4e211c536cd16f1c0be4de901713ee27b7 Mon Sep 17 00:00:00 2001 From: rodri Date: Sun, 12 Nov 2023 18:05:53 +0000 Subject: correct rgb to rgba conversion. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 1c735f9..aa98c68 100644 --- a/main.c +++ b/main.c @@ -453,7 +453,7 @@ modelshader(Sparams *sp) tp.y = Dy(modeltex->r)-(tt.p0.y + tt.p1.y + tt.p2.y)*Dy(modeltex->r); unloadmemimage(modeltex, rectaddpt(Rect(0,0,1,1), tp), cbuf2, sizeof cbuf2); - cbuf[0] = cbuf2[3]; + cbuf[0] = 0xFF; cbuf[1] = cbuf2[0]; cbuf[2] = cbuf2[1]; cbuf[3] = cbuf2[2]; -- cgit v1.2.3