From 380ff447101e6809d90c9edec7781bbaa339d894 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 17 Apr 2016 20:45:24 +0200 Subject: [PATCH] Workaround for older versions of the DirectX SDK --- panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx index 505fe7b10d..43bf6d3311 100644 --- a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx +++ b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx @@ -4118,19 +4118,18 @@ get_blend_func(ColorBlendAttrib::Operand operand) { return D3DBLEND_SRCALPHASAT; case ColorBlendAttrib::O_incoming1_color: - return D3DBLEND_SRCCOLOR2; + return (D3DBLEND)16; //D3DBLEND_SRCCOLOR2; case ColorBlendAttrib::O_one_minus_incoming1_color: - return D3DBLEND_INVSRCCOLOR2; + return (D3DBLEND)17; //D3DBLEND_INVSRCCOLOR2; case ColorBlendAttrib::O_incoming1_alpha: - // Not supported by DX. - return D3DBLEND_SRCCOLOR2; + // Not supported by DX9. + return (D3DBLEND)18; case ColorBlendAttrib::O_one_minus_incoming1_alpha: - // Not supported by DX. - return D3DBLEND_INVSRCCOLOR2; - + // Not supported by DX9. + return (D3DBLEND)19; } dxgsg9_cat.error()