[PATCH] dxgi: Return S_OK from d3d11_swapchain_GetLastPresentCount().

Henri Verbeet hverbeet at gmail.com
Mon May 31 04:18:30 CDT 2021


On Fri, 28 May 2021 at 16:03, Andrey Gusev <andrey.goosev at gmail.com> wrote:
> @@ -601,7 +601,10 @@ static HRESULT STDMETHODCALLTYPE d3d11_swapchain_GetLastPresentCount(IDXGISwapCh
>  {
>      FIXME("iface %p, last_present_count %p stub!\n", iface, last_present_count);
>
> -    return E_NOTIMPL;
> +    if (last_present_count)
> +        *last_present_count = 0;
> +
> +    return S_OK;
>  }
>
Looking at the description for this function, it shouldn't be too hard
to write a proper implementation and a small test. (In particular, the
documentation claims this simply counts the number of Present() calls,
not necessarily the number of finished presents.) Note that
d3d12_swapchain_GetLastPresentCount() exists as well.



More information about the wine-devel mailing list