Adrian Thiele : mfplat: Use D3DFORMAT for dxgi buffer copy function.
Alexandre Julliard
julliard at winehq.org
Wed Jul 7 15:01:30 CDT 2021
Module: wine
Branch: master
Commit: 5c687f5d9a05f923f8eada65e69a77dfb6ea3c0b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5c687f5d9a05f923f8eada65e69a77dfb6ea3c0b
Author: Adrian Thiele <adrian.thiele at live.de>
Date: Wed Jul 7 17:27:08 2021 +0200
mfplat: Use D3DFORMAT for dxgi buffer copy function.
Signed-off-by: Adrian Thiele <adrian.thiele at live.de>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Derek Lesho <dlesho at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mfplat/buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mfplat/buffer.c b/dlls/mfplat/buffer.c
index c1829043e1b..9081dc39eab 100644
--- a/dlls/mfplat/buffer.c
+++ b/dlls/mfplat/buffer.c
@@ -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)))
{
More information about the wine-cvs
mailing list