Jacek Caban : d3d11.idl: Fixed a typo in CD3D11_BLEND_DESC constructor.

Alexandre Julliard julliard at winehq.org
Mon Apr 23 17:58:36 CDT 2018


Module: wine
Branch: master
Commit: 51c9aaf58499ff59c1f46f6f728dd384e54821a0
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=51c9aaf58499ff59c1f46f6f728dd384e54821a0

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Apr 20 17:32:58 2018 +0200

d3d11.idl: Fixed a typo in CD3D11_BLEND_DESC constructor.

Spotted by Tom Ritter.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/d3d11.idl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/d3d11.idl b/include/d3d11.idl
index b4cc3be..78b4f33 100644
--- a/include/d3d11.idl
+++ b/include/d3d11.idl
@@ -1371,7 +1371,9 @@ cpp_quote("    explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLE
 cpp_quote("    explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
 cpp_quote("        AlphaToCoverageEnable = FALSE;")
 cpp_quote("        IndependentBlendEnable = FALSE;")
-cpp_quote("        for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
+cpp_quote("        for(D3D11_RENDER_TARGET_BLEND_DESC *target = RenderTarget;")
+cpp_quote("                target < RenderTarget + D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT;")
+cpp_quote("                target++) {")
 cpp_quote("            target->BlendEnable = FALSE;")
 cpp_quote("            target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
 cpp_quote("            target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")




More information about the wine-cvs mailing list