mfplat: Use D3DFORMAT for dxgi buffer copy function.

Signed-off-by: Adrian Thiele <adrian.thiele@live.de>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Derek Lesho <dlesho@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Adrian Thiele 2021-07-07 17:27:08 +02:00 committed by Alexandre Julliard
parent 393ea20679
commit 5c687f5d9a
1 changed files with 1 additions and 1 deletions

View File

@ -1473,7 +1473,7 @@ static HRESULT create_dxgi_surface_buffer(IUnknown *surface, unsigned int sub_re
object->_2d.width = stride;
object->_2d.height = desc.Height;
object->max_length = object->_2d.plane_size;
object->_2d.copy_image = get_2d_buffer_copy_func(desc.Format);
object->_2d.copy_image = get_2d_buffer_copy_func(format);
if (FAILED(hr = init_attributes_object(&object->dxgi_surface.attributes, 0)))
{