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:
parent
393ea20679
commit
5c687f5d9a
|
@ -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)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue