[PATCH 1/5] d3d8: call wined3d_swapchain_get_front_buffer_data instead of wined3d_device_get_front_buffer_data in d3d8_device_GetFrontBuffer

Henri Verbeet hverbeet at gmail.com
Fri Oct 16 05:43:59 CDT 2015


On 15 October 2015 at 15:41, Riccardo Bortolato <rikyz619 at gmail.com> wrote:
> -    hr = wined3d_device_get_front_buffer_data(device->wined3d_device, 0, dst_impl->wined3d_surface);
> +    if (!(swapchain = wined3d_device_get_swapchain(device->wined3d_device, 0)))
> +        hr = D3DERR_INVALIDCALL;
> +    else
> +        hr = wined3d_swapchain_get_front_buffer_data(swapchain, dst_impl->wined3d_surface);
The timing is perhaps unfortunate, but since commit
20d5be042c577b8dfcca431fa4688cad192196df you can just use
"device->implicit_swapchain->wined3d_swapchain" instead of calling
wined3d_device_get_swapchain(). Something similar applies to patch
2/5.



More information about the wine-devel mailing list