From 51c9aaf58499ff59c1f46f6f728dd384e54821a0 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 20 Apr 2018 17:32:58 +0200 Subject: [PATCH] d3d11.idl: Fixed a typo in CD3D11_BLEND_DESC constructor. Spotted by Tom Ritter. Signed-off-by: Jacek Caban Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- include/d3d11.idl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/d3d11.idl b/include/d3d11.idl index b4cc3be5a73..78b4f334676 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;") -- 2.11.4.GIT