=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: dxgi: Implement d3d12_swapchain_GetCurrentBackBufferIndex().
Alexandre Julliard
julliard at winehq.org
Thu May 31 15:56:56 CDT 2018
Module: wine
Branch: master
Commit: 71b29963c588f6cf558f3e7ccc23a476438b22ff
URL: https://source.winehq.org/git/wine.git/?a=commit;h=71b29963c588f6cf558f3e7ccc23a476438b22ff
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Thu May 31 12:04:34 2018 +0200
dxgi: Implement d3d12_swapchain_GetCurrentBackBufferIndex().
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dxgi/swapchain.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/dxgi/swapchain.c b/dlls/dxgi/swapchain.c
index d7b7288..76c674a 100644
--- a/dlls/dxgi/swapchain.c
+++ b/dlls/dxgi/swapchain.c
@@ -1291,9 +1291,11 @@ static HRESULT STDMETHODCALLTYPE d3d12_swapchain_GetMatrixTransform(IDXGISwapCha
static UINT STDMETHODCALLTYPE d3d12_swapchain_GetCurrentBackBufferIndex(IDXGISwapChain3 *iface)
{
- FIXME("iface %p stub!\n", iface);
+ struct d3d12_swapchain *swapchain = d3d12_swapchain_from_IDXGISwapChain3(iface);
+
+ TRACE("iface %p.\n", iface);
- return 0;
+ return swapchain->current_buffer_index;
}
static HRESULT STDMETHODCALLTYPE d3d12_swapchain_CheckColorSpaceSupport(IDXGISwapChain3 *iface,
More information about the wine-cvs
mailing list