Józef Kucia : wined3d: Call wined3d_check_pixel_format_color() also for adapter format.
Module: wine Branch: master Commit: 7358bb01b6e17b5ba7fcd2c8ac18500e4af7f4d2 URL: https://source.winehq.org/git/wine.git/?a=commit;h=7358bb01b6e17b5ba7fcd2c8a... Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Thu Mar 28 09:53:55 2019 +0100 wined3d: Call wined3d_check_pixel_format_color() also for adapter format. In preparation for the next commit. Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wined3d/directx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 801d11c..260fcc3 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1468,6 +1468,7 @@ static BOOL wined3d_check_render_target_format(const struct wined3d_adapter *ada for (i = 0; i < adapter->cfg_count; ++i) { if (cfgs[i].windowDrawable + && wined3d_check_pixel_format_color(&cfgs[i], adapter_format) && wined3d_check_pixel_format_color(&cfgs[i], rt_format)) { TRACE("Pixel format %d is compatible with format %s.\n",
participants (1)
-
Alexandre Julliard