From 72005eb5d65195a3fa686dee41f0ac8315dc98c7 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Tue, 17 Apr 2001 20:41:27 +0000 Subject: [PATCH] fix color transition bug --- panda/src/dxgsg/dxGraphicsStateGuardian.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx index 610a6e4e10..f91466682f 100644 --- a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx +++ b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx @@ -945,7 +945,7 @@ transform_color(Colorf &InColor,D3DCOLOR &OutRGBAColor) { LPoint4f temp_pnt(InColor[0], InColor[1], InColor[2], 1.0f); Colorf out_color = temp_pnt * _current_color_mat; // maybe expand this out for efficiency - out_color[3] = (out_color[3] * _current_alpha_scale) + _current_alpha_offset; + out_color[3] = (InColor[3] * _current_alpha_scale) + _current_alpha_offset; OutRGBAColor = Colorf_to_D3DCOLOR(out_color); }