From 27414c0be0a199c07656c6fd848deba87b8e398c Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Thu, 25 Jul 2013 21:12:13 +0200 Subject: [PATCH] softgpu/Rasterizer: Fix decal texfunc. --- GPU/Software/Rasterizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Software/Rasterizer.cpp b/GPU/Software/Rasterizer.cpp index 1e82b53147..dbdb5c706a 100644 --- a/GPU/Software/Rasterizer.cpp +++ b/GPU/Software/Rasterizer.cpp @@ -250,7 +250,7 @@ void DrawTriangle(const VertexData& v0, const VertexData& v1, const VertexData& case GE_TEXFUNC_DECAL: { - int t = (rgba) ? texcolor.a() : 1; + int t = (rgba) ? texcolor.a() : 255; int invt = (rgba) ? 255 - t : 0; prim_color_rgb = (invt * prim_color_rgb + t * texcolor.rgb()) / 255; // prim_color_a = prim_color_a;