diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-03-01 05:14:31 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-03-01 05:14:31 +0300 |
commit | 9fa00c3c1c73462443093e14b2539e8e17828818 (patch) | |
tree | 5b8d2a946a06d3e928583092ab4a53be7e093d45 /overlay/d3d10.cpp | |
parent | b658561ec118d73bcb623d018936898355f5fe5a (diff) |
Use premultiplied alpha textures
Diffstat (limited to 'overlay/d3d10.cpp')
-rw-r--r-- | overlay/d3d10.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/overlay/d3d10.cpp b/overlay/d3d10.cpp index 102b95f3c..f665d59b2 100644 --- a/overlay/d3d10.cpp +++ b/overlay/d3d10.cpp @@ -286,10 +286,10 @@ void D10State::init() { D3D10_BLEND_DESC blend; ZeroMemory(&blend, sizeof(blend)); blend.BlendEnable[0] = TRUE; - blend.SrcBlend = D3D10_BLEND_SRC_ALPHA; + blend.SrcBlend = D3D10_BLEND_ONE; blend.DestBlend = D3D10_BLEND_INV_SRC_ALPHA; blend.BlendOp = D3D10_BLEND_OP_ADD; - blend.SrcBlendAlpha = D3D10_BLEND_SRC_ALPHA; + blend.SrcBlendAlpha = D3D10_BLEND_ONE; blend.DestBlendAlpha = D3D10_BLEND_INV_SRC_ALPHA; blend.BlendOpAlpha = D3D10_BLEND_OP_ADD; blend.RenderTargetWriteMask[0] = D3D10_COLOR_WRITE_ENABLE_ALL; |