From: Biswapriyo Nath nathbappai@gmail.com
Signed-off-by: Biswapriyo Nath nathbappai@gmail.com --- include/d3d10.idl | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/include/d3d10.idl b/include/d3d10.idl index c35e44a0d92..71f93c51afb 100644 --- a/include/d3d10.idl +++ b/include/d3d10.idl @@ -252,6 +252,11 @@ cpp_quote("#define MAKE_D3D10_STATUS(code) MAKE_HRESULT( 0, _ cpp_quote("#define D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS MAKE_D3D10_HRESULT(1)") cpp_quote("#define D3D10_ERROR_FILE_NOT_FOUND MAKE_D3D10_HRESULT(2)")
+cpp_quote("#if !defined(D3D10_NO_HELPERS) && defined(__cplusplus)") +cpp_quote("inline UINT D3D10CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels)") +cpp_quote("{ return MipSlice + ArraySlice * MipLevels; }") +cpp_quote("#endif") + typedef enum D3D10_BLEND { D3D10_BLEND_ZERO = 1, D3D10_BLEND_ONE = 2,