Commit 5c687f5d authored by Adrian Thiele's avatar Adrian Thiele Committed by Alexandre Julliard

mfplat: Use D3DFORMAT for dxgi buffer copy function.

parent 393ea206
......@@ -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)))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment